mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 20:30:45 +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
|
|
@ -7,6 +7,7 @@ zte/zte_zxros_show_lldp_neighbor_brief.textfsm, .*, zte_zxros, sh[[ow]] lld[[p]]
|
|||
zte/zte_zxros_show_interface_brief.textfsm, .*, zte_zxros, sh[[ow]] int[[erface]] br[[ief]]
|
||||
zte/zte_zxros_show_interface.textfsm, .*, zte_zxros, sh[[ow]] int[[erface]] .+
|
||||
zte/zte_zxros_show_ip_vrf.textfsm, .*, zte_zxros, sh[[ow]] ip vrf$
|
||||
zte/zte_zxros_show_arp.textfsm, .*, zte_zxros, sh[[ow]] arp
|
||||
|
||||
# --- cisco ---
|
||||
cisco/cisco_ios_show_interfaces.textfsm, .*, cisco_ios, sh[[ow]] int[[erfaces]] .+
|
||||
|
|
|
|||
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