This repository has been archived by the owner on Sep 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from napalm-automation/develop
Release 0.5.4
- Loading branch information
Showing
4 changed files
with
253 additions
and
173 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
190 changes: 110 additions & 80 deletions
190
test/unit/mocked_data/test_get_bgp_config/mixed_with_without_groups/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 |
---|---|---|
@@ -1,82 +1,112 @@ | ||
{ | ||
"RR": { | ||
"neighbors": { | ||
"10.255.255.12": { | ||
"local_address": "", | ||
"export_policy": "", | ||
"route_reflector_client": false, | ||
"remote_as": 0, | ||
"authentication_key": "", | ||
"import_policy": "RP-SPECIAL-SNOWFLAKE-IN", | ||
"nhs": false, | ||
"prefix_limit": {}, | ||
"local_as": 0, | ||
"description": "" | ||
}, | ||
"10.255.255.3": { | ||
"local_address": "", | ||
"export_policy": "", | ||
"route_reflector_client": false, | ||
"remote_as": 0, | ||
"authentication_key": "", | ||
"import_policy": "", | ||
"nhs": false, | ||
"prefix_limit": {}, | ||
"local_as": 0, | ||
"description": "" | ||
} | ||
}, | ||
"remote_as": 65900, | ||
"multipath": false, | ||
"export_policy": "", | ||
"prefix_limit": {}, | ||
"description": "", | ||
"local_address": "", | ||
"apply_groups": [], | ||
"remove_private_as": true, | ||
"import_policy": "RP-RR-IN", | ||
"type": "external", | ||
"local_as": 0, | ||
"multihop_ttl": 0 | ||
}, | ||
"_": { | ||
"neighbors": { | ||
"10.255.255.2": { | ||
"local_address": "", | ||
"export_policy": "pass-all", | ||
"route_reflector_client": false, | ||
"remote_as": 65900, | ||
"authentication_key": "", | ||
"import_policy": "pass-all", | ||
"nhs": false, | ||
"prefix_limit": {}, | ||
"local_as": 0, | ||
"description": "" | ||
}, | ||
"10.255.255.220": { | ||
"local_address": "", | ||
"export_policy": "pass-all", | ||
"route_reflector_client": false, | ||
"remote_as": 65900, | ||
"authentication_key": "", | ||
"import_policy": "pass-all", | ||
"nhs": false, | ||
"prefix_limit": {}, | ||
"local_as": 0, | ||
"description": "" | ||
} | ||
}, | ||
"remote_as": 0, | ||
"multipath": false, | ||
"export_policy": "", | ||
"prefix_limit": {}, | ||
"description": "", | ||
"local_address": "", | ||
"apply_groups": [], | ||
"remove_private_as": false, | ||
"import_policy": "", | ||
"type": "", | ||
"local_as": 0, | ||
"multihop_ttl": 0 | ||
} | ||
"_": { | ||
"remote_as": 0, | ||
"neighbors": { | ||
"10.255.255.220": { | ||
"remote_as": 65900, | ||
"export_policy": "pass-all", | ||
"description": "", | ||
"route_reflector_client": false, | ||
"nhs": false, | ||
"local_as": 0, | ||
"import_policy": "pass-all", | ||
"local_address": "", | ||
"prefix_limit": { | ||
"inet": { | ||
"unicast": { | ||
"limit": 0, | ||
"teardown": { | ||
"threshold": 0, | ||
"timeout": 0 | ||
} | ||
} | ||
} | ||
}, | ||
"authentication_key": "" | ||
}, | ||
"10.255.255.2": { | ||
"remote_as": 65900, | ||
"export_policy": "pass-all", | ||
"description": "", | ||
"route_reflector_client": false, | ||
"nhs": false, | ||
"local_as": 0, | ||
"import_policy": "pass-all", | ||
"local_address": "", | ||
"prefix_limit": { | ||
"inet": { | ||
"unicast": { | ||
"limit": 0, | ||
"teardown": { | ||
"threshold": 0, | ||
"timeout": 0 | ||
} | ||
} | ||
} | ||
}, | ||
"authentication_key": "" | ||
} | ||
}, | ||
"multihop_ttl": 0, | ||
"import_policy": "", | ||
"local_address": "", | ||
"type": "", | ||
"remove_private_as": false, | ||
"description": "", | ||
"export_policy": "", | ||
"local_as": 0, | ||
"apply_groups": [], | ||
"multipath": false, | ||
"prefix_limit": {} | ||
}, | ||
"RR": { | ||
"remote_as": 65900, | ||
"neighbors": { | ||
"10.255.255.12": { | ||
"remote_as": 0, | ||
"export_policy": "", | ||
"description": "", | ||
"route_reflector_client": false, | ||
"nhs": false, | ||
"local_as": 0, | ||
"import_policy": "RP-SPECIAL-SNOWFLAKE-IN", | ||
"local_address": "", | ||
"prefix_limit": { | ||
"inet": { | ||
"unicast": { | ||
"limit": 0, | ||
"teardown": { | ||
"threshold": 0, | ||
"timeout": 0 | ||
} | ||
} | ||
} | ||
}, | ||
"authentication_key": "" | ||
}, | ||
"10.255.255.3": { | ||
"remote_as": 0, | ||
"export_policy": "", | ||
"description": "", | ||
"route_reflector_client": false, | ||
"nhs": false, | ||
"local_as": 0, | ||
"import_policy": "", | ||
"local_address": "", | ||
"prefix_limit": {}, | ||
"authentication_key": "" | ||
} | ||
}, | ||
"multihop_ttl": 0, | ||
"import_policy": "RP-RR-IN", | ||
"local_address": "", | ||
"type": "external", | ||
"remove_private_as": true, | ||
"description": "", | ||
"export_policy": "", | ||
"local_as": 0, | ||
"apply_groups": [], | ||
"multipath": false, | ||
"prefix_limit": {} | ||
} | ||
} |
134 changes: 82 additions & 52 deletions
134
test/unit/mocked_data/test_get_bgp_config/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 |
---|---|---|
@@ -1,54 +1,84 @@ | ||
{ | ||
"4-public-anycast-peers": { | ||
"neighbors": { | ||
"192.168.50.5": { | ||
"export_policy": "", | ||
"remote_as": 9009, | ||
"description": "M247 Ltd [UK Hosting ANYCAST]", | ||
"prefix_limit": {}, | ||
"local_as": 0, | ||
"nhs": false, | ||
"route_reflector_client": false, | ||
"local_address": "", | ||
"authentication_key": "", | ||
"import_policy": "" | ||
}, | ||
"192.168.20.3": { | ||
"export_policy": "", | ||
"remote_as": 9050, | ||
"description": "Telekom Romania [RO ISP ANYCAST]", | ||
"prefix_limit": {}, | ||
"local_as": 0, | ||
"nhs": false, | ||
"route_reflector_client": false, | ||
"local_address": "", | ||
"authentication_key": "", | ||
"import_policy": "" | ||
}, | ||
"172.17.17.50": { | ||
"export_policy": "", | ||
"remote_as": 48161, | ||
"description": "NextGen [RO ISP ANYCAST]", | ||
"prefix_limit": {}, | ||
"local_as": 0, | ||
"nhs": false, | ||
"route_reflector_client": false, | ||
"local_address": "", | ||
"authentication_key": "", | ||
"import_policy": "" | ||
} | ||
}, | ||
"export_policy": "4-public-anycast-peers-out", | ||
"prefix_limit": {}, | ||
"description": "", | ||
"local_address": "", | ||
"local_as": 0, | ||
"multihop_ttl": 0, | ||
"apply_groups": [], | ||
"remote_as": 0, | ||
"remove_private_as": true, | ||
"multipath": false, | ||
"type": "external", | ||
"import_policy": "4-public-anycast-peers-in" | ||
} | ||
"4-public-anycast-peers": { | ||
"local_as": 0, | ||
"remove_private_as": true, | ||
"import_policy": "4-public-anycast-peers-in", | ||
"multihop_ttl": 0, | ||
"neighbors": { | ||
"192.168.20.3": { | ||
"export_policy": "", | ||
"local_as": 0, | ||
"prefix_limit": { | ||
"inet": { | ||
"unicast": { | ||
"teardown": { | ||
"timeout": 0, | ||
"threshold": 75 | ||
}, | ||
"limit": 5000 | ||
} | ||
} | ||
}, | ||
"remote_as": 9050, | ||
"import_policy": "", | ||
"nhs": false, | ||
"authentication_key": "", | ||
"local_address": "", | ||
"description": "Telekom Romania [RO ISP ANYCAST]", | ||
"route_reflector_client": false | ||
}, | ||
"172.17.17.50": { | ||
"export_policy": "", | ||
"local_as": 0, | ||
"prefix_limit": { | ||
"inet": { | ||
"unicast": { | ||
"teardown": { | ||
"timeout": 0, | ||
"threshold": 75 | ||
}, | ||
"limit": 500 | ||
} | ||
} | ||
}, | ||
"remote_as": 48161, | ||
"import_policy": "", | ||
"nhs": false, | ||
"authentication_key": "", | ||
"local_address": "", | ||
"description": "NextGen [RO ISP ANYCAST]", | ||
"route_reflector_client": false | ||
}, | ||
"192.168.50.5": { | ||
"export_policy": "", | ||
"local_as": 0, | ||
"prefix_limit": { | ||
"inet": { | ||
"unicast": { | ||
"teardown": { | ||
"timeout": 0, | ||
"threshold": 75 | ||
}, | ||
"limit": 1000 | ||
} | ||
} | ||
}, | ||
"remote_as": 9009, | ||
"import_policy": "", | ||
"nhs": false, | ||
"authentication_key": "", | ||
"local_address": "", | ||
"description": "M247 Ltd [UK Hosting ANYCAST]", | ||
"route_reflector_client": false | ||
} | ||
}, | ||
"multipath": false, | ||
"export_policy": "4-public-anycast-peers-out", | ||
"type": "external", | ||
"apply_groups": [], | ||
"remote_as": 0, | ||
"prefix_limit": {}, | ||
"description": "", | ||
"local_address": "" | ||
} | ||
} |
Oops, something went wrong.