forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: NX-OS - show ip interface brief (VRF support added) (networkt…
- Loading branch information
1 parent
d0f5a68
commit d10b5f9
Showing
3 changed files
with
35 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 26 additions & 13 deletions
39
tests/cisco_nxos/show_ip_interface_brief/cisco_nxos_show_ip_interface_brief.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |