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.
New Template: cisco_ios_show_ip_vrf_interfaces (networktocode#702)
- Loading branch information
1 parent
d10b5f9
commit c683bf6
Showing
6 changed files
with
55 additions
and
0 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 |
---|---|---|
@@ -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 |
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
1 change: 1 addition & 0 deletions
1
tests/cisco_ios/show_ip_vrf_interfaces/cisco_ios_show_ip_vrf_interfaces_empty.raw
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Interface IP-Address VRF Protocol |
2 changes: 2 additions & 0 deletions
2
tests/cisco_ios/show_ip_vrf_interfaces/cisco_ios_show_ip_vrf_interfaces_empty.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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
parsed_sample: [] |
7 changes: 7 additions & 0 deletions
7
tests/cisco_ios/show_ip_vrf_interfaces/cisco_ios_show_ip_vrf_interfaces_iosxe.raw
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 |
---|---|---|
@@ -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 |
26 changes: 26 additions & 0 deletions
26
tests/cisco_ios/show_ip_vrf_interfaces/cisco_ios_show_ip_vrf_interfaces_iosxe.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 |
---|---|---|
@@ -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" |