poll q-bridge-mib for port VLAN, also fix links on device vlan tab

git-svn-id: http://www.observium.org/svn/observer/trunk@2593 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-09-27 10:07:39 +00:00
parent 6529d41ce6
commit 1550b1f5cd
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -90,6 +90,8 @@ if ($device['os_group'] == "ios")
}
$port_stats = snmpwalk_cache_oid($device, "dot1qPortVlanTable", $port_stats, "Q-BRIDGE-MIB");
$polled = time();
/// End Building SNMP Cache Array
@@ -192,12 +194,17 @@ foreach ($ports as $port)
}
/// Set VLAN and Trunk
if(isset($this_port['vlanTrunkPortEncapsulationOperType']) && $this_port['vlanTrunkPortEncapsulationOperType'] != "notApplicable")
if (isset($this_port['vlanTrunkPortEncapsulationOperType']) && $this_port['vlanTrunkPortEncapsulationOperType'] != "notApplicable")
{
$this_port['ifTrunk'] = $this_port['vlanTrunkPortEncapsulationOperType'];
}
$this_port['ifVlan'] = $this_port['vmVlan'];
if(isset($this_port['vlanTrunkPortNativeVlan'])) { $this_port['ifVlan'] = $this_port['vlanTrunkPortNativeVlan']; }
if (isset($this_port['dot1qPvid']))
{
$this_port['ifVlan'] = $this_port['dot1qPvid'];
}
/// Update IF-MIB data
foreach ($data_oids as $oid)