Fixed issue with SNMP contexts using vlan 1002-1005 on IOS devices (#11031)

* Fixed issue with SNMP contexts using vlan 1002-1005 on IOS devices

* FIX: Component modified from NULL value
This commit is contained in:
nistor
2020-01-15 06:10:02 -05:00
committed by PipoCanaja
parent b44875fba6
commit 8d28e40c53
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ foreach ($vtpdomains as $vtpdomain_id => $vtpdomain) {
$vlans_dict[$vlan_raw] = $newvlan_id;
}
if ($vlan['vtpVlanState'] === '1') {
if (($vlan['vtpVlanState'] === '1') && ($vlan_raw < 1002 || $vlan_raw > 1005)) {
$device_vlan = array_merge($device, array('community' => $device['community'] . '@' . $vlan_raw, 'context_name' => "vlan-$vlan_raw"));
$fdbPort_table = snmpwalk_group($device_vlan, 'dot1dTpFdbPort', 'BRIDGE-MIB', 0);