diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-11-26 20:34:12 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-11-26 20:34:28 +0100 |
commit | 5e0a3256b291cc54d14dcb16c1b07018e1febd41 (patch) | |
tree | d16da1bc191af1b00ec0994f0d3a12d9f2d4e724 /etc/inc | |
parent | 4f5577f6628bb6e761127d6202b6d25f14a53821 (diff) | |
download | pfsense-5e0a3256b291cc54d14dcb16c1b07018e1febd41.zip pfsense-5e0a3256b291cc54d14dcb16c1b07018e1febd41.tar.gz |
convert_real_interface_to_friendly_interface_name() goes and checks the parent and this gives wrong information 99.9 percent of the time on scenarios like when this is called for unassigned vlans etc, while its real purpose is just to check if the interface is assigned and return the intermeddiate/config name of the interface. Leave the get_parent_option there in the function but it needs to be asked specifically for.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 3cdeca8..28ab2c2 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2678,7 +2678,7 @@ EOD; /* bring the clones back up that were previously up */ foreach ($clones_up as $clone_if) { - mwexec("{$ifconfig} " . escapeshellarg($clone_if) . " up"); + interfaces_bring_up($clone_if); /* * Rerun the setup script for the interface if it isn't this interface, the interface @@ -4009,7 +4009,7 @@ function get_current_wan_address($interface = "wan") { /* * convert_real_interface_to_friendly_interface_name($interface): convert fxp0 -> wan, etc. */ -function convert_real_interface_to_friendly_interface_name($interface = "wan") { +function convert_real_interface_to_friendly_interface_name($interface = "wan", $checkparent = false) { global $config; if (stripos($interface, "_vip")) { @@ -4032,6 +4032,9 @@ function convert_real_interface_to_friendly_interface_name($interface = "wan") { if (get_real_interface($if) == $interface) return $if; + if ($checkparent == false) + continue; + $int = get_parent_interface($if, true); if (is_array($int)) { foreach ($int as $iface) { |