From 7bd23946ad173c0b7bdacea9ebcc1f962985b4bf Mon Sep 17 00:00:00 2001 From: SLMitch Date: Thu, 8 Jun 2017 09:01:17 +0200 Subject: [PATCH] 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 --- includes/discovery/bgp-peers.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/bgp-peers.inc.php b/includes/discovery/bgp-peers.inc.php index c9fb6abae6..b560452d14 100644 --- a/includes/discovery/bgp-peers.inc.php +++ b/includes/discovery/bgp-peers.inc.php @@ -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'];