remove 'Wrong Type' string when we ask LocalAS to switch (#6745)

* remove 'Wrong Type' string when we ask LocalAS to switch (bug with at least Dell ON Switch)

* Only remove the MIB
This commit is contained in:
SLMitch
2017-06-08 09:01:17 +02:00
committed by Neil Lathwood
parent 5581c40e19
commit 7bd23946ad

View File

@@ -6,7 +6,7 @@ if ($config['enable_bgp']) {
$vrfs_lite_cisco = array(array('context_name'=>null));
}
$bgpLocalAs = trim(snmp_walk($device, '.1.3.6.1.2.1.15.2', '-Oqvn', 'BGP4-MIB'));
$bgpLocalAs = trim(snmp_walk($device, '.1.3.6.1.2.1.15.2', '-Oqvn'));
foreach ($vrfs_lite_cisco as $vrf) {
$device['context_name'] = $vrf['context_name'];