Bug #175
closedconvert_real_interface_to_friendly_descr doesn't work for disabled interfaces
100%
Description
It needs to because some parts of the GUI use it to display interface info (system_gateways.php for one) where it currently shows a blank interface for disabled interfaces.
Files
Updated by Ermal Luçi almost 15 years ago
- Status changed from New to Rejected
This is not true please find the real cause of this.
Updated by Chris Buechler almost 15 years ago
- Status changed from Rejected to New
It is absolutely true.
Updated by Ermal Luçi almost 15 years ago
As far as i can tell
[code]
$ifdescrs = get_configured_interface_with_descr(false, true);
foreach ($ifdescrs as $if => $ifname) {
if ($if $interface || $ifname $interface)
return $ifname;
}
[/code]
This is the code from that function so there is something else.
Updated by Chris Buechler almost 15 years ago
Yes, and get_configured_interface_with_descr(false,true) does return disabled interfaces as it should. I spent time digging through the functions adding debug logging seeing where it went wrong. The interface list works, but it later fails, and I'm not sure where. Config attached that replicates this, browse to system_gateways.php and see blank spot under "Interface" on the OPT1 route.
Updated by Ermal Luçi almost 15 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset c795339e573389fa10ca8ea307b2c45f56a3700b.