mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
fix VLAN on cisco.
git-svn-id: http://www.observium.org/svn/observer/trunk@2703 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -198,15 +198,17 @@ foreach ($ports as $port)
|
||||
if (isset($this_port['vlanTrunkPortEncapsulationOperType']) && $this_port['vlanTrunkPortEncapsulationOperType'] != "notApplicable")
|
||||
{
|
||||
$this_port['ifTrunk'] = $this_port['vlanTrunkPortEncapsulationOperType'];
|
||||
if (isset($this_port['vlanTrunkPortNativeVlan'])) { $this_port['ifVlan'] = $this_port['vlanTrunkPortNativeVlan']; }
|
||||
}
|
||||
$this_port['ifVlan'] = $this_port['vmVlan'];
|
||||
if (isset($this_port['vlanTrunkPortNativeVlan'])) { $this_port['ifVlan'] = $this_port['vlanTrunkPortNativeVlan']; }
|
||||
|
||||
if (!isset($this_port['ifVlan']) && isset($this_port['dot1qPvid']))
|
||||
{
|
||||
$this_port['ifVlan'] = $this_port['dot1qPvid'];
|
||||
}
|
||||
|
||||
echo("VLAN == ".$this_port['ifVlan']);
|
||||
|
||||
/// Update IF-MIB data
|
||||
foreach ($data_oids as $oid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user