Skip to content

Commit

Permalink
add Cisco IOS XR 'show ip interface brief' command (#438)
Browse files Browse the repository at this point in the history
added cisco_xr_show_ip_interface_brief.template
  • Loading branch information
dampfhamm3r authored and FragmentedPacket committed Jul 24, 2019
1 parent 3626a8e commit 144cf37
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/cisco_xr_show_ip_interface_brief.template
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
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ cisco_xr_show_mpls_ldp_neighbor_brief.template, .*, cisco_xr, sh[[ow]] mp[[ls]]
cisco_xr_admin_show_environment_fan.template, .*, cisco_xr, adm[[in]] sh[[ow]] env[[ironment]] f[[an]]
cisco_xr_show_cdp_neighbors_detail.template, .*, cisco_xr, sh[[ow]] c[[dp]] neig[[hbors]] det[[ail]]
cisco_xr_show_cef_drops_location.template, .*, cisco_xr, sh[[ow]] cef drops loc[[ation]]
cisco_xr_show_ip_interface_brief.template, .*, cisco_xr, sh[[ow]] ip int[[erface]] br[[ief]]
cisco_xr_show_redundancy_summary.template, .*, cisco_xr, sh[[ow]] redun[[dancy]] summ[[ary]]
cisco_xr_show_interface_brief.template, .*, cisco_xr, sh[[ow]] int[[erface]] br[[ief]]
cisco_xr_admin_show_platform.template, .*, cisco_xr, adm[[in]] sh[[ow]] pla[[tform]]
Expand Down
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'
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

0 comments on commit 144cf37

Please sign in to comment.