-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
363 additions
and
14 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 |
---|---|---|
|
@@ -292,6 +292,7 @@ | |
|
||
METHOD_ALIASES = { | ||
'get_config_filtered': 'get_config', | ||
'get_route_to_longer': 'get_route_to', | ||
} | ||
|
||
|
||
|
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
test/eos/mocked_data/test_get_route_to_longer/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 @@ | ||
{"1.0.4.0/25": [{"next_hop": "192.168.0.1", "preference": 200, "protocol": "eBGP", "selected_next_hop": true, "current_active": true, "routing_table": "TEST", "protocol_attributes": {"remote_as": 43515, "as_path": "1299 15169 43515", "local_preference": 50, "remote_address": "192.168.0.1", "preference2": 0, "metric": 0, "communities": ["1299:1234", "1299:5678", "1299:91011", "1299:12134"], "local_as": 13335}, "outgoing_interface": "Port-Channel2", "last_active": true, "inactive_reason": "", "age": 0}, {"next_hop": "192.168.0.1", "preference": 200, "protocol": "eBGP", "selected_next_hop": true, "current_active": true, "routing_table": "default", "protocol_attributes": {"remote_as": 43515, "as_path": "1299 15169 43515", "local_preference": 50, "remote_address": "192.168.0.1", "preference2": 0, "metric": 0, "communities": ["1299:1234", "1299:5678", "1299:91011", "1299:12134"], "local_as": 13335}, "outgoing_interface": "Port-Channel2", "last_active": true, "inactive_reason": "", "age": 0}], "1.0.4.128/25": [{"next_hop": "192.168.0.5", "preference": 200, "protocol": "eBGP", "selected_next_hop": true, "current_active": true, "routing_table": "TEST", "protocol_attributes": {"remote_as": 43515, "as_path": "1299 15169 43515", "local_preference": 50, "remote_address": "192.168.0.5", "preference2": 0, "metric": 0, "communities": ["1299:1234", "1299:5678", "1299:91011", "1299:12134"], "local_as": 13335}, "outgoing_interface": "Port-Channel1", "last_active": true, "inactive_reason": "", "age": 0}, {"next_hop": "192.168.0.5", "preference": 200, "protocol": "eBGP", "selected_next_hop": true, "current_active": true, "routing_table": "default", "protocol_attributes": {"remote_as": 43515, "as_path": "1299 15169 43515", "local_preference": 50, "remote_address": "192.168.0.5", "preference2": 0, "metric": 0, "communities": ["1299:1234", "1299:5678", "1299:91011", "1299:12134"], "local_as": 13335}, "outgoing_interface": "Port-Channel1", "last_active": true, "inactive_reason": "", "age": 0}]} |
57 changes: 57 additions & 0 deletions
57
...s/mocked_data/test_get_route_to_longer/normal/show_ip_bgp_1_0_4_0_25_detail_vrf_TEST.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,57 @@ | ||
{ | ||
"vrfs": { | ||
"TEST": { | ||
"routerId": "192.168.256.1", | ||
"vrf": "default", | ||
"bgpRouteEntries": { | ||
"1.0.4.0/25": { | ||
"totalPaths": 1, | ||
"bgpAdvertisedPeerGroups": {}, | ||
"totalAdvertisedPeers": 0, | ||
"maskLength": 20, | ||
"bgpRoutePaths": [ | ||
{ | ||
"asPathEntry": { | ||
"asPathType": "External", | ||
"asPath": "1299 15169 43515" | ||
}, | ||
"med": 0, | ||
"localPreference": 50, | ||
"weight": 0, | ||
"nextHop": "192.168.0.1", | ||
"routeType": { | ||
"atomicAggregator": false, | ||
"valid": true, | ||
"ecmpContributor": false, | ||
"active": true, | ||
"backup": false, | ||
"stale": false, | ||
"suppressed": false, | ||
"ecmpHead": false, | ||
"queued": false, | ||
"ecmp": false | ||
}, | ||
"routeDetail": { | ||
"origin": "Igp", | ||
"peerEntry": { | ||
"peerRouterId": "192.168.256.1", | ||
"peerAddr": "192.168.0.1" | ||
}, | ||
"extCommunityList": [], | ||
"communityList": [ | ||
"1299:1234", | ||
"1299:5678", | ||
"1299:91011", | ||
"1299:12134" | ||
], | ||
"recvdFromRRClient": false | ||
} | ||
} | ||
], | ||
"address": "1.0.4.0" | ||
} | ||
}, | ||
"asn": 13335 | ||
} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
...ocked_data/test_get_route_to_longer/normal/show_ip_bgp_1_0_4_0_25_detail_vrf_default.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,57 @@ | ||
{ | ||
"vrfs": { | ||
"default": { | ||
"routerId": "192.168.256.1", | ||
"vrf": "default", | ||
"bgpRouteEntries": { | ||
"1.0.4.0/25": { | ||
"totalPaths": 1, | ||
"bgpAdvertisedPeerGroups": {}, | ||
"totalAdvertisedPeers": 0, | ||
"maskLength": 20, | ||
"bgpRoutePaths": [ | ||
{ | ||
"asPathEntry": { | ||
"asPathType": "External", | ||
"asPath": "1299 15169 43515" | ||
}, | ||
"med": 0, | ||
"localPreference": 50, | ||
"weight": 0, | ||
"nextHop": "192.168.0.1", | ||
"routeType": { | ||
"atomicAggregator": false, | ||
"valid": true, | ||
"ecmpContributor": false, | ||
"active": true, | ||
"backup": false, | ||
"stale": false, | ||
"suppressed": false, | ||
"ecmpHead": false, | ||
"queued": false, | ||
"ecmp": false | ||
}, | ||
"routeDetail": { | ||
"origin": "Igp", | ||
"peerEntry": { | ||
"peerRouterId": "192.168.256.1", | ||
"peerAddr": "192.168.0.1" | ||
}, | ||
"extCommunityList": [], | ||
"communityList": [ | ||
"1299:1234", | ||
"1299:5678", | ||
"1299:91011", | ||
"1299:12134" | ||
], | ||
"recvdFromRRClient": false | ||
} | ||
} | ||
], | ||
"address": "1.0.4.0" | ||
} | ||
}, | ||
"asn": 13335 | ||
} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
...mocked_data/test_get_route_to_longer/normal/show_ip_bgp_1_0_4_128_25_detail_vrf_TEST.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,57 @@ | ||
{ | ||
"vrfs": { | ||
"TEST": { | ||
"routerId": "192.168.256.1", | ||
"vrf": "default", | ||
"bgpRouteEntries": { | ||
"1.0.4.128/25": { | ||
"totalPaths": 1, | ||
"bgpAdvertisedPeerGroups": {}, | ||
"totalAdvertisedPeers": 0, | ||
"maskLength": 20, | ||
"bgpRoutePaths": [ | ||
{ | ||
"asPathEntry": { | ||
"asPathType": "External", | ||
"asPath": "1299 15169 43515" | ||
}, | ||
"med": 0, | ||
"localPreference": 50, | ||
"weight": 0, | ||
"nextHop": "192.168.0.5", | ||
"routeType": { | ||
"atomicAggregator": false, | ||
"valid": true, | ||
"ecmpContributor": false, | ||
"active": true, | ||
"backup": false, | ||
"stale": false, | ||
"suppressed": false, | ||
"ecmpHead": false, | ||
"queued": false, | ||
"ecmp": false | ||
}, | ||
"routeDetail": { | ||
"origin": "Igp", | ||
"peerEntry": { | ||
"peerRouterId": "192.168.256.1", | ||
"peerAddr": "192.168.0.5" | ||
}, | ||
"extCommunityList": [], | ||
"communityList": [ | ||
"1299:1234", | ||
"1299:5678", | ||
"1299:91011", | ||
"1299:12134" | ||
], | ||
"recvdFromRRClient": false | ||
} | ||
} | ||
], | ||
"address": "1.0.4.128" | ||
} | ||
}, | ||
"asn": 13335 | ||
} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
...ked_data/test_get_route_to_longer/normal/show_ip_bgp_1_0_4_128_25_detail_vrf_default.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,57 @@ | ||
{ | ||
"vrfs": { | ||
"default": { | ||
"routerId": "192.168.256.1", | ||
"vrf": "default", | ||
"bgpRouteEntries": { | ||
"1.0.4.128/25": { | ||
"totalPaths": 1, | ||
"bgpAdvertisedPeerGroups": {}, | ||
"totalAdvertisedPeers": 0, | ||
"maskLength": 20, | ||
"bgpRoutePaths": [ | ||
{ | ||
"asPathEntry": { | ||
"asPathType": "External", | ||
"asPath": "1299 15169 43515" | ||
}, | ||
"med": 0, | ||
"localPreference": 50, | ||
"weight": 0, | ||
"nextHop": "192.168.0.5", | ||
"routeType": { | ||
"atomicAggregator": false, | ||
"valid": true, | ||
"ecmpContributor": false, | ||
"active": true, | ||
"backup": false, | ||
"stale": false, | ||
"suppressed": false, | ||
"ecmpHead": false, | ||
"queued": false, | ||
"ecmp": false | ||
}, | ||
"routeDetail": { | ||
"origin": "Igp", | ||
"peerEntry": { | ||
"peerRouterId": "192.168.256.1", | ||
"peerAddr": "192.168.0.5" | ||
}, | ||
"extCommunityList": [], | ||
"communityList": [ | ||
"1299:1234", | ||
"1299:5678", | ||
"1299:91011", | ||
"1299:12134" | ||
], | ||
"recvdFromRRClient": false | ||
} | ||
} | ||
], | ||
"address": "1.0.4.128" | ||
} | ||
}, | ||
"asn": 13335 | ||
} | ||
} | ||
} |
Oops, something went wrong.