Project

General

Profile

Actions

Bug #175

closed

convert_real_interface_to_friendly_descr doesn't work for disabled interfaces

Added by Chris Buechler almost 15 years ago. Updated almost 15 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
11/22/2009
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:

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

Actions #1

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.

Actions #2

Updated by Chris Buechler almost 15 years ago

  • Status changed from Rejected to New

It is absolutely true.

Actions #3

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.

Actions #4

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.

Actions #5

Updated by Ermal Luçi almost 15 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Chris Buechler almost 15 years ago

fixed

Actions

Also available in: Atom PDF