-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to handle Cisco ISR mac address table with multiple EHWIC mod… (…
…#996) * Update to handle Cisco ISR mac address table with multiple EHWIC modules installed * Fixed a c/p error when creating this fork - missed a 'continue' line * Ran black to reformat file * Added testcase for mac-address-table with multiple EHWIC modules * Updated format of expected MAC output as per @mirceaulinic's recommendation Co-authored-by: Brad Ellis <brad.ellis@cengn.ca> Co-authored-by: Mircea Ulinic <mirceaulinic@users.noreply.github.com>
- Loading branch information
1 parent
8b1e986
commit 7b704b5
Showing
3 changed files
with
35 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
18 changes: 18 additions & 0 deletions
18
...ios/mocked_data/test_get_mac_address_table/isr_multiple_ehwic_format/expected_result.json
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,18 @@ | ||
[{ | ||
"static": false, | ||
"active": true, | ||
"vlan": 2, | ||
"mac": "11:11:22:22:33:33", | ||
"interface": "GigabitEthernet0/0/1", | ||
"moves": -1, | ||
"last_move": -1.0 | ||
}, | ||
{ | ||
"static": false, | ||
"active": true, | ||
"vlan": 1, | ||
"mac": "33:33:22:22:11:11", | ||
"interface": "GigabitEthernet0/1/1", | ||
"moves": -1, | ||
"last_move": -1.0 | ||
}] |
9 changes: 9 additions & 0 deletions
9
...cked_data/test_get_mac_address_table/isr_multiple_ehwic_format/show_mac_address_table.txt
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,9 @@ | ||
EHWIC: 0 | ||
Destination Address Address Type VLAN Destination Port | ||
------------------- ------------ ---- ----------------- | ||
1111.2222.3333 Dynamic 2 GigabitEthernet0/0/1 | ||
|
||
EHWIC: 1 | ||
Destination Address Address Type VLAN Destination Port | ||
------------------- ------------ ---- ----------------- | ||
3333.2222.1111 Dynamic 1 GigabitEthernet0/1/1 |