-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for VRF in EOS get_arp_table (#908)
- Loading branch information
Showing
10 changed files
with
124 additions
and
31 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
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
20 changes: 0 additions & 20 deletions
20
test/eos/mocked_data/test_get_arp_table/normal/show_arp.json
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
test/eos/mocked_data/test_get_arp_table/normal/show_arp_vrf_all.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,24 @@ | ||
{ | ||
"vrfs": { | ||
"default": { | ||
"dynamicEntries": 699, | ||
"ipV4Neighbors": [ | ||
{ | ||
"hwAddress": "dc38.e111.97cf", | ||
"address": "172.17.17.1", | ||
"interface": "Ethernet45", | ||
"age": 0 | ||
}, | ||
{ | ||
"hwAddress": "90e2.ba5c.25fd", | ||
"address": "172.17.17.1", | ||
"interface": "Ethernet36", | ||
"age": 0 | ||
} | ||
], | ||
"notLearnedEntries": 19, | ||
"totalEntries": 699, | ||
"staticEntries": 0 | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/eos/mocked_data/test_get_arp_table_with_vrf/normal/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 @@ | ||
[{"interface": "Ethernet45", "ip": "172.17.17.1", "mac": "DC:38:E1:11:97:CF", "age": 0.0}, {"interface": "Ethernet36", "ip": "172.17.17.1", "mac": "90:E2:BA:5C:25:FD", "age": 0.0}] |
40 changes: 40 additions & 0 deletions
40
test/eos/mocked_data/test_get_arp_table_with_vrf/normal/show_arp_vrf_all.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,40 @@ | ||
{ | ||
"vrfs": { | ||
"TEST": { | ||
"dynamicEntries": 699, | ||
"ipV4Neighbors": [ | ||
{ | ||
"hwAddress": "dc38.e111.97cf", | ||
"address": "172.17.17.1", | ||
"interface": "Ethernet45", | ||
"age": 0 | ||
}, | ||
{ | ||
"hwAddress": "90e2.ba5c.25fd", | ||
"address": "172.17.17.1", | ||
"interface": "Ethernet36", | ||
"age": 0 | ||
} | ||
], | ||
"notLearnedEntries": 19, | ||
"totalEntries": 699, | ||
"staticEntries": 0 | ||
}, | ||
"default": { | ||
"dynamicEntries": 699, | ||
"ipV4Neighbors": [ | ||
{ | ||
"hwAddress": "90e2.ba5c.25fa", | ||
"address": "172.18.17.1", | ||
"interface": "Ethernet32", | ||
"age": 0 | ||
} | ||
], | ||
"notLearnedEntries": 19, | ||
"totalEntries": 699, | ||
"staticEntries": 0 | ||
} | ||
} | ||
} | ||
|
||
|
14 changes: 14 additions & 0 deletions
14
test/nxos_ssh/mocked_data/test_get_arp_table_with_vrf/normal/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,14 @@ | ||
[ | ||
{ | ||
"interface": "mgmt0", | ||
"ip": "10.0.0.2", | ||
"mac": "2C:C2:60:FF:00:21", | ||
"age": 4.0 | ||
}, | ||
{ | ||
"interface": "mgmt0", | ||
"ip": "10.0.0.72", | ||
"mac": "2C:C2:60:36:32:21", | ||
"age": 140.0 | ||
} | ||
] |
11 changes: 11 additions & 0 deletions
11
.../mocked_data/test_get_arp_table_with_vrf/normal/show_ip_arp_vrf_TEST___exc_INCOMPLETE.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,11 @@ | ||
|
||
Flags: * - Adjacencies learnt on non-active FHRP router | ||
+ - Adjacencies synced via CFSoE | ||
# - Adjacencies Throttled for Glean | ||
D - Static Adjacencies attached to down interface | ||
|
||
IP ARP Table for context default | ||
Total number of entries: 2 | ||
Address Age MAC Address Interface | ||
10.0.0.2 00:00:04 2cc2.60ff.0021 mgmt0 | ||
10.0.0.72 00:02:20 2cc2.6036.3221 mgmt0 * |