mirror of
https://github.com/hansjone/netx.git
synced 2026-10-08 23:33:21 +08:00
Use custom cli_templates plus community ntc-templates for LLDP and port traffic across ZTE/Huawei/Cisco/H3C/Juniper/Nokia, drop regex parsers, and surface Admin/Phy/Prot on port discover. Also batch-add topology NEs and tighten workbench branding. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
735 B
Text
20 lines
735 B
Text
Value Filldown INTERFACE (\S+)
|
|
Value Filldown ADMIN_OPER (UP|DOWN|Administratively\s+DOWN)
|
|
Value Filldown DESCRIPTION (.*)
|
|
Value Filldown RATE_PERIOD (\d+)
|
|
Value Filldown INPUT_BPS ([\d.]+)
|
|
Value Filldown OUTPUT_BPS ([\d.]+)
|
|
Value Filldown IN_UTIL ([\d.]+)
|
|
Value OUT_UTIL ([\d.]+)
|
|
|
|
Start
|
|
^${INTERFACE}\s+current\s+state\s*:\s*${ADMIN_OPER}
|
|
^Description:\s*${DESCRIPTION}\s*$$
|
|
^\s*Last\s+${RATE_PERIOD}\s+seconds\s+input\s+rate:\s*${INPUT_BPS}\s*bits/sec
|
|
^\s*Last\s+\d+\s+seconds\s+output\s+rate:\s*${OUTPUT_BPS}\s*bits/sec
|
|
^\s*Last\s+\d+\s+seconds\s+input\s+utility\s+rate:\s*${IN_UTIL}\s*%
|
|
^\s*Last\s+\d+\s+seconds\s+output\s+utility\s+rate:\s*${OUT_UTIL}\s*% -> Record
|
|
^\s*$$
|
|
^\s*<.*>\s*$$
|
|
^.*#\s*$$
|
|
^.* -> Start
|