-
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.
IOS SHOW MAC-ADDRESS TABLE: Add new layout of cli output (#342)
* Fix standard regular expressions to skip headers * Add test files for template update
- Loading branch information
1 parent
a377186
commit bb08349
Showing
3 changed files
with
128 additions
and
2 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
52 changes: 52 additions & 0 deletions
52
tests/cisco_ios/show_mac-address-table/cisco_ios_show_mac-address-table5.parsed
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,52 @@ | ||
--- | ||
parsed_sample: | ||
- destination_address: "009e.1ead.eadd" | ||
type: "dynamic" | ||
vlan: "420" | ||
destination_port: "Po140" | ||
|
||
- destination_address: "009e.1ead.eadd" | ||
type: "dynamic" | ||
vlan: "420" | ||
destination_port: "Po140" | ||
|
||
- destination_address: "009e.1ead.eadd" | ||
type: "dynamic" | ||
vlan: "420" | ||
destination_port: "Po140" | ||
|
||
- destination_address: "009e.1ead.eadd" | ||
type: "dynamic" | ||
vlan: "420" | ||
destination_port: "Po140" | ||
|
||
- destination_address: "009e.1ead.eadd" | ||
type: "dynamic" | ||
vlan: "420" | ||
destination_port: "Po140" | ||
|
||
- destination_address: "009e.1ead.eadd" | ||
type: "dynamic" | ||
vlan: "420" | ||
destination_port: "Po140" | ||
|
||
- destination_address: "009e.1ead.eadd" | ||
type: "dynamic" | ||
vlan: "420" | ||
destination_port: "Po140" | ||
|
||
- destination_address: "009e.1ead.eadd" | ||
type: "dynamic" | ||
vlan: "420" | ||
destination_port: "Po140" | ||
|
||
- destination_address: "009e.1ead.eadd" | ||
type: "dynamic" | ||
vlan: "420" | ||
destination_port: "Po140" | ||
|
||
- destination_address: "009e.1ead.eadd" | ||
type: "dynamic" | ||
vlan: "420" | ||
destination_port: "Po140" | ||
|
75 changes: 75 additions & 0 deletions
75
tests/cisco_ios/show_mac-address-table/cisco_ios_show_mac-address-table5.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,75 @@ | ||
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 | ||
|
||
Displaying entries from DFC switch [1] linecard [1]: | ||
|
||
vlan mac address type learn age ports | ||
----+----+---------------+-------+-----+----------+----------------------------- | ||
420 009e.1ead.eadd dynamic Yes 160 Po140 | ||
|
||
|
||
Displaying entries from DFC switch [1] linecard [2]: | ||
|
||
vlan mac address type learn age ports | ||
----+----+---------------+-------+-----+----------+----------------------------- | ||
* 420 009e.1ead.eadd dynamic Yes 5 Po140 | ||
|
||
|
||
Displaying entries from DFC switch [1] linecard [3]: | ||
|
||
vlan mac address type learn age ports | ||
----+----+---------------+-------+-----+----------+----------------------------- | ||
420 009e.1ead.eadd dynamic Yes 45 Po140 | ||
|
||
|
||
Displaying entries from DFC switch [1] linecard [4]: | ||
|
||
vlan mac address type learn age ports | ||
----+----+---------------+-------+-----+----------+----------------------------- | ||
420 009e.1ead.eadd dynamic Yes 175 Po140 | ||
|
||
|
||
Displaying entries from active supervisor: | ||
|
||
vlan mac address type learn age ports | ||
----+----+---------------+-------+-----+----------+----------------------------- | ||
420 009e.1ead.eadd dynamic Yes 65 Po140 | ||
|
||
|
||
Displaying entries from DFC switch [2] linecard [1]: | ||
|
||
vlan mac address type learn age ports | ||
----+----+---------------+-------+-----+----------+----------------------------- | ||
420 009e.1ead.eadd dynamic Yes 140 Po140 | ||
|
||
|
||
Displaying entries from DFC switch [2] linecard [2]: | ||
|
||
vlan mac address type learn age ports | ||
----+----+---------------+-------+-----+----------+----------------------------- | ||
* 420 009e.1ead.eadd dynamic Yes 5 Po140 | ||
|
||
|
||
Displaying entries from DFC switch [2] linecard [3]: | ||
|
||
vlan mac address type learn age ports | ||
----+----+---------------+-------+-----+----------+----------------------------- | ||
420 009e.1ead.eadd dynamic Yes 120 Po140 | ||
|
||
|
||
Displaying entries from DFC switch [2] linecard [4]: | ||
|
||
vlan mac address type learn age ports | ||
----+----+---------------+-------+-----+----------+----------------------------- | ||
420 009e.1ead.eadd dynamic Yes 180 Po140 | ||
|
||
|
||
Displaying entries from standby supervisor: | ||
|
||
vlan mac address type learn age ports | ||
----+----+---------------+-------+-----+----------+----------------------------- | ||
420 009e.1ead.eadd dynamic Yes 115 Po140 |