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>
This commit is contained in:
oliver 2026-09-17 22:30:23 +08:00
parent 02b8a7073b
commit 0f235133ed
5 changed files with 195 additions and 51 deletions

View file

@ -0,0 +1,32 @@
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