mirror of
https://github.com/hansjone/netx.git
synced 2026-10-11 06:50:49 +08:00
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:
parent
02b8a7073b
commit
0f235133ed
5 changed files with 195 additions and 51 deletions
32
netx_api/cli_templates/zte/zte_zxros_show_arp.textfsm
Normal file
32
netx_api/cli_templates/zte/zte_zxros_show_arp.textfsm
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue