-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Cisco IOS XR 'show ip interface brief' command (#438)
added cisco_xr_show_ip_interface_brief.template
- Loading branch information
1 parent
3626a8e
commit 144cf37
Showing
4 changed files
with
48 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,8 @@ | ||
Value INTF (.+?) | ||
Value IPADDR (\S+) | ||
Value STATUS (Up|Down|Shutdown) | ||
Value PROTO (Up|Down) | ||
Value VRF (\S+) | ||
|
||
Start | ||
^${INTF}\s+${IPADDR}\s+${STATUS}\s+${PROTO}\s+${VRF} -> Record |
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
32 changes: 32 additions & 0 deletions
32
tests/cisco_xr/show_ip_interface_brief/cisco_xr_show_ip_interface_brief.parsed
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,32 @@ | ||
--- | ||
parsed_sample: | ||
- intf: 'GigabitEthernet0/0/1/18' | ||
ipaddr: 'unassigned' | ||
status: 'Shutdown' | ||
proto: 'Down' | ||
vrf: 'default' | ||
- intf: 'GigabitEthernet0/0/1/19' | ||
ipaddr: 'unassigned' | ||
status: 'Up' | ||
proto: 'Up' | ||
vrf: 'default' | ||
- intf: 'GigabitEthernet0/0/1/19.2003' | ||
ipaddr: '10.79.255.0' | ||
status: 'Up' | ||
proto: 'Up' | ||
vrf: 'WAG:OOB' | ||
- intf: 'TenGigE0/0/2/0' | ||
ipaddr: 'unassigned' | ||
status: 'Up' | ||
proto: 'Up' | ||
vrf: 'default' | ||
- intf: 'TenGigE0/0/2/0.2396' | ||
ipaddr: '10.79.255.96' | ||
status: 'Up' | ||
proto: 'Up' | ||
vrf: 'WAG:123' | ||
- intf: 'TenGigE0/0/2/0.2397' | ||
ipaddr: '10.79.255.80' | ||
status: 'Up' | ||
proto: 'Up' | ||
vrf: 'WAG:ABC' |
7 changes: 7 additions & 0 deletions
7
tests/cisco_xr/show_ip_interface_brief/cisco_xr_show_ip_interface_brief.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 Status Protocol Vrf-Name | ||
GigabitEthernet0/0/1/18 unassigned Shutdown Down default | ||
GigabitEthernet0/0/1/19 unassigned Up Up default | ||
GigabitEthernet0/0/1/19.2003 10.79.255.0 Up Up WAG:OOB | ||
TenGigE0/0/2/0 unassigned Up Up default | ||
TenGigE0/0/2/0.2396 10.79.255.96 Up Up WAG:123 | ||
TenGigE0/0/2/0.2397 10.79.255.80 Up Up WAG:ABC |