refactor: use sysDescr to simplify the vyatta detection (#6455)

This commit is contained in:
Tony Murray
2017-04-18 23:42:56 +01:00
committed by Neil Lathwood
parent 9385bc54de
commit d8fcdc9ae3
+5 -2
View File
@@ -7,5 +7,8 @@ over:
- { graph: device_processor, text: 'Processor Usage' }
- { graph: device_ucd_memory, text: 'Memory Usage' }
discovery:
- sysDescr_regex:
- '/^Vyatta((?!VyOS).)*$/' # = starts_with($sysDescr, 'Vyatta') && !str_contains($sysDescr, 'VyOS')
-
sysDescr_regex:
- '/^Vyatta/'
sysDescr_except:
- 'VyOS'