summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces_vlan_edit.php
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2016-02-21 10:36:30 -0600
committerLuiz Otavio O Souza <luiz@netgate.com>2016-02-21 16:38:24 -0600
commit9fcc75816b3395695210e6731119e322d013cf77 (patch)
tree3b1d867f8e83ad64c6d3b53eefc86e306b3a6d59 /src/usr/local/www/interfaces_vlan_edit.php
parent9eeb91dd85329a24f2aebb780ef1c7df46dbd05d (diff)
downloadpfsense-9fcc75816b3395695210e6731119e322d013cf77.zip
pfsense-9fcc75816b3395695210e6731119e322d013cf77.tar.gz
If exist, print the friendly interface name next to device name.
Diffstat (limited to 'src/usr/local/www/interfaces_vlan_edit.php')
-rw-r--r--src/usr/local/www/interfaces_vlan_edit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/usr/local/www/interfaces_vlan_edit.php b/src/usr/local/www/interfaces_vlan_edit.php
index a6743d0..f281dda 100644
--- a/src/usr/local/www/interfaces_vlan_edit.php
+++ b/src/usr/local/www/interfaces_vlan_edit.php
@@ -193,6 +193,9 @@ function build_interfaces_list() {
foreach ($portlist as $ifn => $ifinfo) {
if (is_jumbo_capable($ifn)) {
$list[$ifn] = $ifn . " (" . $ifinfo['mac'] . ")";
+ $iface = convert_real_interface_to_friendly_interface_name($ifn);
+ if (isset($iface) && strlen($iface) > 0)
+ $list[$ifn] .= " - $iface";
}
}
OpenPOWER on IntegriCloud