Skip to content

Commit

Permalink
Bugfix: NX-OS - show ip interface brief (VRF support added) (networkt…
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 d0f5a68 commit d10b5f9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 13 deletions.
5 changes: 5 additions & 0 deletions templates/cisco_nxos_show_ip_interface_brief.textfsm
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
Value Filldown VRF (\S+)
Value Required INTF (\S+)
Value Required IPADDR ([a-zA-Z0-9./]+)
Value STATUS (\S+-\S+)
Value LINK (\S+-\S+)
Value PROTO (\S+-\S+)

Start
^IP\s+Interface\s+Status\s+for\s+VRF\s+"${VRF}"\(\d+\)
^Interface\s+IP\s+Address\s+Interface\s+Status
^${INTF}\s+${IPADDR}\s+${PROTO}/${LINK}/${STATUS} -> Record
^\s*$$
^.*$$ -> Error
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ Eth1/4 10.1.1.14 protocol-up/link-up/admin-up
Eth1/5 10.1.1.15 protocol-up/link-up/admin-up
Eth1/6 10.1.1.16 protocol-down/link-down/admin-up
Eth1/7 10.1.1.17 protocol-down/link-down/admin-up

IP Interface Status for VRF "management"(2)
Interface IP Address Interface Status
mgmt0 192.168.149.11 protocol-up/link-up/admin-up
Original file line number Diff line number Diff line change
@@ -1,37 +1,50 @@
---
parsed_sample:
- intf: "Eth1/1"
- vrf: "default"
intf: "Eth1/1"
ipaddr: "10.1.1.11"
status: "admin-up"
link: "link-down"
proto: "protocol-down"
status: "admin-up"
- intf: "Eth1/2"
- vrf: "default"
intf: "Eth1/2"
ipaddr: "10.1.1.12"
status: "admin-up"
link: "link-up"
proto: "protocol-up"
status: "admin-up"
- intf: "Eth1/3"
- vrf: "default"
intf: "Eth1/3"
ipaddr: "10.1.1.13"
status: "admin-up"
link: "link-up"
proto: "protocol-up"
status: "admin-up"
- intf: "Eth1/4"
- vrf: "default"
intf: "Eth1/4"
ipaddr: "10.1.1.14"
status: "admin-up"
link: "link-up"
proto: "protocol-up"
status: "admin-up"
- intf: "Eth1/5"
- vrf: "default"
intf: "Eth1/5"
ipaddr: "10.1.1.15"
status: "admin-up"
link: "link-up"
proto: "protocol-up"
status: "admin-up"
- intf: "Eth1/6"
- vrf: "default"
intf: "Eth1/6"
ipaddr: "10.1.1.16"
status: "admin-up"
link: "link-down"
proto: "protocol-down"
status: "admin-up"
- intf: "Eth1/7"
- vrf: "default"
intf: "Eth1/7"
ipaddr: "10.1.1.17"
status: "admin-up"
link: "link-down"
proto: "protocol-down"
- vrf: "management"
intf: "mgmt0"
ipaddr: "192.168.149.11"
status: "admin-up"
link: "link-up"
proto: "protocol-up"

0 comments on commit d10b5f9

Please sign in to comment.