mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
PBN devices support CDP but does not output like Cisco so using a different function to grab the first array needed
This commit is contained in:
@@ -41,7 +41,12 @@ if ($device['os'] == 'ironware' && $config['autodiscovery']['xdp'] === true) {
|
||||
echo ' CISCO-CDP-MIB: ';
|
||||
unset($cdp_array);
|
||||
if ($config['autodiscovery']['xdp'] === true) {
|
||||
$cdp_array = snmpwalk_cache_twopart_oid($device, 'cdpCache', array(), 'CISCO-CDP-MIB');
|
||||
if ($device['os'] == 'pbn') {
|
||||
$cdp_array = snmpwalk_cache_oid($device, 'cdpCache', array(), 'CISCO-CDP-MIB');
|
||||
}
|
||||
else {
|
||||
$cdp_array = snmpwalk_cache_twopart_oid($device, 'cdpCache', array(), 'CISCO-CDP-MIB');
|
||||
}
|
||||
d_echo($cdp_array);
|
||||
if ($cdp_array) {
|
||||
unset($cdp_links);
|
||||
|
||||
Reference in New Issue
Block a user