netx/netx_api/cli_templates/huawei/huawei_vrp_display_interface.textfsm
oliver 393fd0e0b4 Switch CLI parsing to TextFSM and polish topology/workbench UX.
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>
2026-08-02 23:06:40 +08:00

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