-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template Pull Request - cisco_xr_show_interfaces_summary (#580)
- Loading branch information
1 parent
17c9e80
commit eef6726
Showing
4 changed files
with
61 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,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 |
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
11 changes: 11 additions & 0 deletions
11
tests/cisco_xr/show_interfaces_summary/cisco_xr_show_interfaces_summary.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,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 | ||
|
37 changes: 37 additions & 0 deletions
37
tests/cisco_xr/show_interfaces_summary/cisco_xr_show_interfaces_summary.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,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" |