mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Revert "newdevice: improve IOS-XE detection" (#6436)
* Revert "improve callback serial number regex (#6435)" This reverts commit2f881e3d80. * Revert "fix: vlan port mappings not removed (#6423)" This reverts commit924b751be4. * Revert "missed file deletion (#6430)" This reverts commit801a563c10. * Revert "refactor: move Engenius discovery to yaml (#6428)" This reverts commitfa731f3826. * Revert "refactor: move cometsystem-p85xx (#6427)" This reverts commit01477a15f4. * Revert "refactor: move the rest of avaya os detection to yaml (#6426)" This reverts commit8a8edb7d6d. * Revert "refactor: move aos discovery to yaml (#6425)" This reverts commit54975f64d4. * Revert "newdevice: improve IOS-XE detection (#6429)" This reverts commit9c44b1a809.
This commit is contained in:
@@ -8,14 +8,6 @@ over:
|
||||
- { graph: device_processor, text: 'CPU Usage' }
|
||||
- { graph: device_mempool, text: 'Memory Usage' }
|
||||
icon: cisco
|
||||
discovery:
|
||||
-
|
||||
sysDescr:
|
||||
- 'Cisco Internetwork Operating System Software'
|
||||
- 'IOS (tm)'
|
||||
- 'Cisco IOS Software'
|
||||
- 'Global Site Selector'
|
||||
sysDescr_regex: '/^((?!LINUX_IOSD).)*$/' #IOS-XE adding more regex will break detection, modify instead
|
||||
bad_ifXEntry:
|
||||
- cisco1941
|
||||
- cisco886Va
|
||||
|
||||
@@ -34,4 +34,5 @@ register_mibs:
|
||||
ciscoAAASessionMIB: CISCO-AAA-SESSION-MIB
|
||||
discovery:
|
||||
- sysDescr:
|
||||
- LINUX_IOSD
|
||||
- IOS-XE
|
||||
- X86_64_LINUX_IOSD
|
||||
|
||||
5
includes/discovery/os/ios.inc.php
Normal file
5
includes/discovery/os/ios.inc.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
if (str_contains($sysDescr, array('Cisco Internetwork Operating System Software', 'IOS (tm)', 'Cisco IOS Software', 'Global Site Selector')) && !str_contains($sysDescr, array('IOS-XE', 'X86_64_LINUX_IOSD'))) {
|
||||
$os = 'ios';
|
||||
}
|
||||
Reference in New Issue
Block a user