Disable/Inactive Ports show VLAN as routed
Creates web pages that show information about Ethernet switches.
Brought to you by:
siemsen
Hallo,
in detailed switch overview, when a port is inactive or disabled, will in the VLAN field "routed" instead of the configured VLAN number.
In the old version 11.13 was shown the correct number there.
Quick and dirty fix. Should be probably made more intelligent ...:
--- PopulatePorts.pm.alt 2010-10-25 18:14:06.000000000 +0200
+++ PopulatePorts.pm 2011-02-15 10:39:46.000000000 +0100
@@ -1352,6 +1352,7 @@
if ($Port->{State} eq 'Active') {
$Port->{Speed} = $IfSpeeds{$PortName};
} else {
+ $Port->{IsSwitching} = 1;
$Port->{Speed} = (exists $AdminSpeeds{$PortName}) ? $AdminSpeeds{$PortName} : 'n/a';
}
}
Anonymous