Skip to content

Commit

Permalink
New Template Pull Request - cisco_xr_show_interfaces_summary (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
hijm authored and FragmentedPacket committed Jan 25, 2020
1 parent 17c9e80 commit eef6726
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/cisco_xr_show_interfaces_summary.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Value INTF_TYPE (ALL TYPES|IFT_ETHERBUNDLE|IFT_HUNDREDGE|IFT_LOOPBACK|IFT_ETHERNET|IFT_NULL|IFT_TENGETHERNET)
Value TOTAL (\d+)
Value UP (\S+)
Value DOWN (\S+)
Value ADMIN_DOWN (\S+)

Start
^Interface\s+Type\s+Total\s+UP\s+\Down\s+Admin\s+Down\s*$$
^----
^${INTF_TYPE}+\s+${TOTAL}\s+${UP}\s+${DOWN}\s+${ADMIN_DOWN} -> Record
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ cisco_xr_admin_show_environment_fan.textfsm, .*, cisco_xr, adm[[in]] sh[[ow]] en
cisco_xr_show_cdp_neighbors_detail.textfsm, .*, cisco_xr, sh[[ow]] c[[dp]] neig[[hbors]] det[[ail]]
cisco_xr_show_controllers_all_phy.textfsm, .*, cisco_xr, sh[[ow]] contr[[ollers]] (\S+) ph[[y]]
cisco_xr_show_cef_drops_location.textfsm, .*, cisco_xr, sh[[ow]] cef drops loc[[ation]]
cisco_xr_show_interfaces_summary.textfsm, .*, cisco_xr, sh[[ow]] int[[erfaces]] summ[[ary]]
cisco_xr_show_ip_interface_brief.textfsm, .*, cisco_xr, sh[[ow]] ip int[[erface]] br[[ief]]
cisco_xr_show_redundancy_summary.textfsm, .*, cisco_xr, sh[[ow]] redun[[dancy]] summ[[ary]]
cisco_xr_admin_show_inventory.textfsm, .*, cisco_xr, adm[[in]] sh[[ow]] inven[[tory]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Interface Type Total UP Down Admin Down
-------------- ----- -- ---- ----------
ALL TYPES 81 51 0 30
--------------
IFT_ETHERBUNDLE 11 11 0 0
IFT_HUNDREDGE 26 2 0 24
IFT_LOOPBACK 1 1 0 0
IFT_ETHERNET 2 0 0 2
IFT_NULL 1 1 0 0
IFT_TENGETHERNET 40 36 0 4

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
parsed_sample:
- intf_type: "ALL TYPES"
total: "81"
up: "51"
down: "0"
admin_down: "30"
- intf_type: "IFT_ETHERBUNDLE"
total: "11"
up: "11"
down: "0"
admin_down: "0"
- intf_type: "IFT_HUNDREDGE"
total: "26"
up: "2"
down: "0"
admin_down: "24"
- intf_type: "IFT_LOOPBACK"
total: "1"
up: "1"
down: "0"
admin_down: "0"
- intf_type: "IFT_ETHERNET"
total: "2"
up: "0"
down: "0"
admin_down: "2"
- intf_type: "IFT_NULL"
total: "1"
up: "1"
down: "0"
admin_down: "0"
- intf_type: "IFT_TENGETHERNET"
total: "40"
up: "36"
down: "0"
admin_down: "4"

0 comments on commit eef6726

Please sign in to comment.