newdevice: improve IOS-XE detection (#6429)

PPC_LINUX_IOSD or X86_64_LINUX_IOSD means IOS-XE, Drop the X86_64_ as that gives us full coverage.
Drop IOS-XE usage for detection.  Allows us to migrate ios detection to yaml.
This commit is contained in:
Tony Murray
2017-04-15 01:46:09 -05:00
committed by Neil Lathwood
parent d64a083141
commit 9c44b1a809
3 changed files with 9 additions and 7 deletions

View File

@ -8,6 +8,14 @@ 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

View File

@ -34,5 +34,4 @@ register_mibs:
ciscoAAASessionMIB: CISCO-AAA-SESSION-MIB
discovery:
- sysDescr:
- IOS-XE
- X86_64_LINUX_IOSD
- LINUX_IOSD

View File

@ -1,5 +0,0 @@
<?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';
}