mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 02:00:46 +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>
19 lines
668 B
Text
19 lines
668 B
Text
Value Required INTERFACE (\S+)
|
|
Value LINK_STATUS (.+?)
|
|
Value PROTOCOL_STATUS (.+?)
|
|
Value DESCRIPTION (.+?)
|
|
Value BANDWIDTH (\d+\s+\w+)
|
|
Value RATE_PERIOD (\d+)
|
|
Value RATE_PERIOD_UNIT (second|minute|hour)
|
|
Value INPUT_RATE (\d+)
|
|
Value OUTPUT_RATE (\d+)
|
|
|
|
Start
|
|
^${INTERFACE}\s+is\s+${LINK_STATUS},\s*line\s+protocol\s+is\s+${PROTOCOL_STATUS}\s*$$
|
|
^\s+Description:\s+${DESCRIPTION}\s*$$
|
|
^\s+MTU\s+\d+\s+bytes,\s+BW\s+${BANDWIDTH}(?:/s(?:ec)?)?,
|
|
^\s+${RATE_PERIOD}\s+${RATE_PERIOD_UNIT}s?\s+input\s+rate\s+${INPUT_RATE}\s+bits/sec
|
|
^\s+\d+\s+(?:second|minute|hour)s?\s+output\s+rate\s+${OUTPUT_RATE}\s+bits/sec -> Record
|
|
^\s*$$
|
|
^\S+#\s*$$ -> End
|
|
^.* -> Start
|