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:
vitalisator
2016-01-24 20:35:29 +01:00
parent 2e274f5e2a
commit 40d17b4c4a

View File

@@ -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';