-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancements: Cisco IOS show mac and show module (#1006)
- Loading branch information
1 parent
9362ca2
commit ec76c69
Showing
13 changed files
with
532 additions
and
47 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
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
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
10 changes: 6 additions & 4 deletions
10
ntc_templates/templates/cisco_ios_show_module_status.textfsm
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
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
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
27 changes: 27 additions & 0 deletions
27
tests/cisco_ios/show_mac-address-table/cisco_ios_show_mac-address-table11.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,27 @@ | ||
Legend: * - primary entry | ||
age - seconds since last seen | ||
n/a - not available | ||
S - secure entry | ||
R - router's gateway mac address entry | ||
D - Duplicate mac address entry | ||
# - Fabric mac address entry. Clear mac cli doesn't clear this entry | ||
|
||
Displaying entries from active supervisor:: | ||
|
||
vlan mac address type learn age ports | ||
-----+----+---------------+-------+-----+----------+----------------------------- | ||
50 5ca0.1545.f407 dynamic Yes 20 Po50 | ||
50 f4ea.6748.92ad dynamic Yes 5 Po50 | ||
20 5ca0.15a8.682e dynamic Yes 0 Po80 | ||
* 38 b4e9.b0c8.0340 dynamic Yes 0 Po5 | ||
R N/A b4e9.b0c8.01c0 static No - Router | ||
* 115 6064.05fa.cadd dynamic Yes 50 Gi3/35 | ||
5 a4ff.6d0d.dcf5 dynamic Yes 0 Po10 | ||
40 c8f9.f9d7.a87b dynamic Yes 15 Po40 | ||
1 0100.0ccc.ccce static No - Gi1/14 Po5 Po10 Po20 | ||
Po30 Po40 Po50 Po60 | ||
Po70 Po80 Po90 | ||
50 5ca0.15a9.103e dynamic Yes 15 Po50 | ||
|
||
|
||
|
62 changes: 62 additions & 0 deletions
62
tests/cisco_ios/show_mac-address-table/cisco_ios_show_mac-address-table11.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: | ||
- destination_address: "5ca0.1545.f407" | ||
type: "dynamic" | ||
vlan: "50" | ||
destination_port: | ||
- "Po50" | ||
- destination_address: "f4ea.6748.92ad" | ||
type: "dynamic" | ||
vlan: "50" | ||
destination_port: | ||
- "Po50" | ||
- destination_address: "5ca0.15a8.682e" | ||
type: "dynamic" | ||
vlan: "20" | ||
destination_port: | ||
- "Po80" | ||
- destination_address: "b4e9.b0c8.0340" | ||
type: "dynamic" | ||
vlan: "38" | ||
destination_port: | ||
- "Po5" | ||
- destination_address: "b4e9.b0c8.01c0" | ||
type: "static" | ||
vlan: "N/A" | ||
destination_port: | ||
- "Router" | ||
- destination_address: "6064.05fa.cadd" | ||
type: "dynamic" | ||
vlan: "115" | ||
destination_port: | ||
- "Gi3/35" | ||
- destination_address: "a4ff.6d0d.dcf5" | ||
type: "dynamic" | ||
vlan: "5" | ||
destination_port: | ||
- "Po10" | ||
- destination_address: "c8f9.f9d7.a87b" | ||
type: "dynamic" | ||
vlan: "40" | ||
destination_port: | ||
- "Po40" | ||
- destination_address: "0100.0ccc.ccce" | ||
type: "static" | ||
vlan: "1" | ||
destination_port: | ||
- "Gi1/14" | ||
- "Po5" | ||
- "Po10" | ||
- "Po20" | ||
- "Po30" | ||
- "Po40" | ||
- "Po50" | ||
- "Po60" | ||
- "Po70" | ||
- "Po80" | ||
- "Po90" | ||
- destination_address: "5ca0.15a9.103e" | ||
type: "dynamic" | ||
vlan: "50" | ||
destination_port: | ||
- "Po50" |
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
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 @@ | ||
Chassis Type : WS-C4510R+E | ||
|
||
Power consumed by backplane : 40 Watts | ||
|
||
Mod Ports Card Type Model Serial No. | ||
---+-----+--------------------------------------+------------------+----------- | ||
1 48 10/100/1000BaseT UPOE E Series AS-T4748-UPOE+E ABC1234L0X3 | ||
2 48 10/100/1000BaseT UPOE E Series AS-T4748-UPOE+E ABC1234L15S | ||
3 48 10/100/1000BaseT UPOE E Series AS-T4748-UPOE+E ABC1234L0WR | ||
4 48 10/100/1000BaseT UPOE E Series AS-T4748-UPOE+E ABC1234L15B | ||
5 4 Sup 7-E 10GE (SFP+), 1000BaseX (SFP) AS-T45-SUP7-E ABC1234L46Z | ||
6 4 Sup 7-E 10GE (SFP+), 1000BaseX (SFP) AS-T45-SUP7-E ABC1234L0MU | ||
8 48 10/100/1000BaseT UPOE E Series AS-T4748-UPOE+E ABC1234L4XM | ||
9 48 10/100/1000BaseT UPOE E Series AS-T4748-UPOE+E ABC1234L17Y | ||
10 12 1000BaseX (SFP) AS-T4612-SFP-E ABC1234021X | ||
|
||
M MAC addresses Hw Fw Sw Status | ||
--+--------------------------------+---+------------+----------------+--------- | ||
1 ffff.ca83.ffff to ffff.ca83.ffff 1.2 Ok | ||
2 ffff.89a3.ffff to ffff.89a3.ffff 1.2 Ok | ||
3 ffff.ac5c.ffff to ffff.ac5c.ffff 1.2 Ok | ||
4 ffff.ca83.ffff to ffff.ca83.ffff 1.2 Ok | ||
5 ffff.aca5.ffff to ffff.aca5.ffff 2.1 15.0(1r)SG5 03.11.03a.E Ok | ||
6 ffff.aca5.ffff to ffff.aca5.ffff 2.1 15.0(1r)SG5 03.11.03a.E Ok | ||
8 ffff.2894.ffff to ffff.2894.ffff 1.2 Ok | ||
9 ffff.a78f.ffff to ffff.a78f.ffff 1.1 Ok | ||
10 ffff.0671.ffff to ffff.0671.ffff 2.0 Ok | ||
|
||
Mod Redundancy role Operating mode Redundancy status | ||
----+-------------------+-------------------+---------------------------------- | ||
5 Active Supervisor SSO Active | ||
6 Standby Supervisor SSO Standby hot |
Oops, something went wrong.