mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
Add multi-command collect with FSM-first if-intf aux and batch cache.
ARP binds show running-config if-intf to enrich vrf; identical aux commands reuse session cache. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
0f235133ed
commit
1f70f7fc25
10 changed files with 646 additions and 42 deletions
|
|
@ -8,6 +8,7 @@ zte/zte_zxros_show_interface_brief.textfsm, .*, zte_zxros, sh[[ow]] int[[erface]
|
|||
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
|
||||
zte/zte_zxros_show_running_config_if_intf.textfsm, .*, zte_zxros, sh[[ow]] run[[ning-config]] if-intf
|
||||
|
||||
# --- cisco ---
|
||||
cisco/cisco_ios_show_interfaces.textfsm, .*, cisco_ios, sh[[ow]] int[[erfaces]] .+
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
Value Filldown INTERFACE (\S+)
|
||||
Value Required VRF (\S+)
|
||||
|
||||
Start
|
||||
^interface\s+${INTERFACE} -> If
|
||||
^\s*$$
|
||||
^.* -> Start
|
||||
|
||||
If
|
||||
^\s*ip\s+vrf\s+forwarding\s+${VRF} -> Record
|
||||
^interface\s+${INTERFACE} -> If
|
||||
^\s*$$
|
||||
^.* -> If
|
||||
Loading…
Add table
Add a link
Reference in a new issue