From 9fcc75816b3395695210e6731119e322d013cf77 Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Sun, 21 Feb 2016 10:36:30 -0600 Subject: If exist, print the friendly interface name next to device name. --- src/usr/local/www/interfaces_vlan_edit.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/usr/local/www/interfaces_vlan_edit.php') 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"; } } -- cgit v1.1