Skip to content

Commit

Permalink
New Template: cisco_ios_show_ip_vrf_interfaces (networktocode#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakuza-UA authored and thomasblass committed Oct 25, 2020
1 parent d10b5f9 commit c683bf6
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 0 deletions.
18 changes: 18 additions & 0 deletions templates/cisco_ios_show_ip_vrf_interfaces.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Value Required INTERFACE (\S+)
Value Required IPADDRESS (\S+)
Value Required VRF (\S+)
Value Required PROTO_STATE (\S+)

# This command returns a list of interfaces which are assigned to
# non-default VRF, including IP address (if available), VRF name,
# interface name and protocol status

Start
^Interface\s+IP-Address\s+VRF\s+Protocol -> Entries
^\s*$$
^. -> Error

Entries
^${INTERFACE}\s+${IPADDRESS}\s+${VRF}\s+${PROTO_STATE} -> Record
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ cisco_ios_show_ip_interface_brief.textfsm, .*, cisco_ios, sh[[ow]] ip int[[erfac
cisco_ios_show_interfaces_status.textfsm, .*, cisco_ios, sh[[ow]] int[[erfaces]] st[[atus]]
cisco_ios_show_ip_eigrp_topology.textfsm, .*, cisco_ios, sh[[ow]] ip eigrp top[[ology]]
cisco_ios_show_ip_source_binding.textfsm, .*, cisco_ios, sh[[ow]] ip sou[[rce]] b[[inding]]
cisco_ios_show_ip_vrf_interfaces.textfsm, .*, cisco_ios, sh[[ow]] ip vr[[f]] in[[terfaces]]
cisco_ios_show_mac-address-table.textfsm, .*, cisco_ios, sh[[ow]] mac[[-address-table]]
cisco_ios_show_adjacency_detail.textfsm, .*, cisco_ios, sh[[ow]] ad[[jacency]](?:\s+\S+)* det[[ail]]
cisco_ios_show_ip_bgp_neighbors.textfsm, .*, cisco_ios, sh[[ow]] ip bgp nei[[ghbors]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Interface IP-Address VRF Protocol
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
parsed_sample: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Interface IP-Address VRF Protocol
Vl1100 192.168.100.1 BYOD-Guest up
Vl1200 192.168.200.1 BYOD-Guest up
Vl1832 10.255.0.10 BYOD-Guest up
Gi0/0 unassigned Mgmt-vrf down
Vl520 172.31.2.253 SP-INET up
Vl1836 10.255.0.18 SP-INET up
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
parsed_sample:
- interface: "Vl1100"
ipaddress: "192.168.100.1"
vrf: "BYOD-Guest"
proto_state: "up"
- interface: "Vl1200"
ipaddress: "192.168.200.1"
vrf: "BYOD-Guest"
proto_state: "up"
- interface: "Vl1832"
ipaddress: "10.255.0.10"
vrf: "BYOD-Guest"
proto_state: "up"
- interface: "Gi0/0"
ipaddress: "unassigned"
vrf: "Mgmt-vrf"
proto_state: "down"
- interface: "Vl520"
ipaddress: "172.31.2.253"
vrf: "SP-INET"
proto_state: "up"
- interface: "Vl1836"
ipaddress: "10.255.0.18"
vrf: "SP-INET"
proto_state: "up"

0 comments on commit c683bf6

Please sign in to comment.