mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Merge pull request #1701 from vitalisator/revert-1614-issue-1566
Revert "PBN devices support CDP but does not output like Cisco so usi…
This commit is contained in:
@@ -41,12 +41,7 @@ if ($device['os'] == 'ironware' && $config['autodiscovery']['xdp'] === true) {
|
||||
echo ' CISCO-CDP-MIB: ';
|
||||
unset($cdp_array);
|
||||
if ($config['autodiscovery']['xdp'] === true) {
|
||||
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');
|
||||
}
|
||||
$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