netx/netx_api/cli_templates/zte/zte_zxros_show_arp.textfsm
oliver 0f235133ed Wire ZTE show arp through TextFSM dual-input pipeline.
Add zte_zxros_show_arp rule + prefer_fsm mapping using the lab one-line sample.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 22:30:23 +08:00

32 lines
785 B
Text

Value IP (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
Value AGE (\S+)
Value MAC ([0-9a-fA-F]{4}\.[0-9a-fA-F]{4}\.[0-9a-fA-F]{4})
Value INTERFACE (\S+)
Value EXTER_VLAN (\S+)
Value INTER_VLAN (\S+)
Value SUB_INTERFACE (\S+)
Start
^IP\s+Hardware -> Header
^Address\s+Age\s+Address -> Entries
^-+ -> Entries
^\s*$$
^.* -> Start
Header
^Address\s+Age\s+Address -> Entries
^-+ -> Entries
^\s*$$
^.* -> Header
Entries
^${IP}\s+${AGE}\s+${MAC}\s+${INTERFACE}\s+${EXTER_VLAN}\s+${INTER_VLAN}\s+${SUB_INTERFACE}\s*$$ -> Record
^${IP}\s+${AGE}\s+${MAC}\s+${INTERFACE}\s+${EXTER_VLAN}\s+${INTER_VLAN}\s*$$ -> Record
^${IP}\s+${AGE}\s+${MAC}\s+${INTERFACE}\s*$$ -> Record
^-+
^The\s+count
^Arp\s+protect
^\s*$$
^\S+\s*#\s*$$ -> End
^.*#\s*$$ -> End
^.* -> Entries