-
Notifications
You must be signed in to change notification settings - Fork 744
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_etherchannel_summary
- Loading branch information
1 parent
7fef2ff
commit 32206ab
Showing
4 changed files
with
117 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,29 @@ | ||
Value Required GROUP (\d+) | ||
Value PO_NAME (\S+) | ||
Value PO_STATUS (\D+) | ||
Value PROTOCOL (\S+) | ||
Value List INTERFACES ([\w\.\/]+) | ||
Value List INTERFACES_STATUS (\D+) | ||
|
||
Start | ||
^Group\s+Port-channel\s+Protocol -> PortChannel | ||
^\s*$$ | ||
|
||
|
||
|
||
PortChannel | ||
^\d+ -> Continue.Record | ||
^${GROUP}\s+${PO_NAME}\(${PO_STATUS}\)\s+${PROTOCOL}\s* -> Continue | ||
^.+(-|LACP|PAgP)\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue | ||
^.+(-|LACP|PAgP)\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue | ||
^.+(-|LACP|PAgP)\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue | ||
^.+(-|LACP|PAgP)\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue | ||
^\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue | ||
^\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue | ||
^\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue | ||
^\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+[\w\.\/\(\)]+\s+${INTERFACES}\(${INTERFACES_STATUS}\) -> Continue | ||
^\d+ | ||
^\s+ | ||
^-+\++ | ||
^\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
25 changes: 25 additions & 0 deletions
25
tests/cisco_ios/show_etherchannel_summary/show_etherchannel_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,25 @@ | ||
Flags: D - down P - bundled in port-channel | ||
I - stand-alone s - suspended | ||
H - Hot-standby (LACP only) | ||
R - Layer3 S - Layer2 | ||
U - in use N - not in use, no aggregation | ||
f - failed to allocate aggregator | ||
|
||
M - not in use, no aggregation due to minimum links not met | ||
m - not in use, port not aggregated due to minimum links not met | ||
u - unsuitable for bundling | ||
d - default port | ||
|
||
w - waiting to be aggregated | ||
Number of channel-groups in use: 6 | ||
Number of aggregators: 6 | ||
|
||
Group Port-channel Protocol Ports | ||
------+-------------+-----------+----------------------------------------------- | ||
1 Po1(SU) LACP Te6/4(P) Te3/5(P) Te9/4(P) | ||
Te5/5(P) | ||
3 Po3(SU) LACP Te4/2(P) Te2/2(P) | ||
7 Po7(SU) LACP Te3/3(P) Te1/3(P) | ||
13 Po13(SU) LACP Te2/8(P) | ||
14 Po14(SU) LACP Te1/8(P) | ||
51 Po51(SU) LACP Te2/10(P) Te4/10(P) |
62 changes: 62 additions & 0 deletions
62
tests/cisco_ios/show_etherchannel_summary/show_etherchannel_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,62 @@ | ||
--- | ||
parsed_sample: | ||
- "group": "1" | ||
"po_name": "Po1" | ||
"po_status": "SU" | ||
"protocol": "LACP" | ||
"interfaces": | ||
- "Te6/4" | ||
- "Te3/5" | ||
- "Te9/4" | ||
- "Te5/5" | ||
"interfaces_status": | ||
- "P" | ||
- "P" | ||
- "P" | ||
- "P" | ||
- "group": "3" | ||
"po_name": "Po3" | ||
"po_status": "SU" | ||
"protocol": "LACP" | ||
"interfaces": | ||
- "Te4/2" | ||
- "Te2/2" | ||
"interfaces_status": | ||
- "P" | ||
- "P" | ||
- "group": "7" | ||
"po_name": "Po7" | ||
"po_status": "SU" | ||
"protocol": "LACP" | ||
"interfaces": | ||
- "Te3/3" | ||
- "Te1/3" | ||
"interfaces_status": | ||
- "P" | ||
- "P" | ||
- "group": "13" | ||
"po_name": "Po13" | ||
"po_status": "SU" | ||
"protocol": "LACP" | ||
"interfaces": | ||
- "Te2/8" | ||
"interfaces_status": | ||
- "P" | ||
- "group": "14" | ||
"po_name": "Po14" | ||
"po_status": "SU" | ||
"protocol": "LACP" | ||
"interfaces": | ||
- "Te1/8" | ||
"interfaces_status": | ||
- "P" | ||
- "group": "51" | ||
"po_name": "Po51" | ||
"po_status": "SU" | ||
"protocol": "LACP" | ||
"interfaces": | ||
- "Te2/10" | ||
- "Te4/10" | ||
"interfaces_status": | ||
- "P" | ||
- "P" |