mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
resolve problem with absent VLAN's on devices with reported version 2 ieee8021QBridgeVlanVersionNumber
ieee8021QBridgeVlanVersionNumber OBJECT-TYPE
SYNTAX INTEGER {
version1(1),
version2(2)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The version number of IEEE 802.1Q that this device
supports. Reported as 1 by VLAN Bridges that support
only SST operation, and reported as 2 by VLAN Bridges
that support MST operation."
REFERENCE "12.10.1.1"
::= { ieee8021QBridgeEntry 2 }
This commit is contained in:
@@ -4,7 +4,7 @@ echo 'Q-BRIDGE-MIB VLANs : ';
|
||||
|
||||
$vlanversion = snmp_get($device, 'dot1qVlanVersionNumber.0', '-Oqv', 'Q-BRIDGE-MIB');
|
||||
|
||||
if ($vlanversion == 'version1') {
|
||||
if ($vlanversion == 'version1' || $vlanversion == '2' ) {
|
||||
echo "VLAN $vlanversion ";
|
||||
|
||||
$vtpdomain_id = '1';
|
||||
|
||||
Reference in New Issue
Block a user