-
Notifications
You must be signed in to change notification settings - Fork 559
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 #1892 from napalm-automation/iss905
eos: use peer group dict to populate neighbors
- Loading branch information
Showing
6 changed files
with
111 additions
and
25 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
57 changes: 57 additions & 0 deletions
57
test/eos/mocked_data/test_get_bgp_config/issue_905_group_copydown/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,57 @@ | ||
{ | ||
"_": { | ||
"type": "", | ||
"multipath": false, | ||
"apply_groups": [], | ||
"remove_private_as": false, | ||
"multihop_ttl": 0, | ||
"remote_as": 0, | ||
"local_address": "", | ||
"local_as": 65534, | ||
"description": "", | ||
"import_policy": "", | ||
"export_policy": "", | ||
"prefix_limit": {}, | ||
"neighbors": {} | ||
}, | ||
"FOO-GROUP": { | ||
"local_address": "", | ||
"description": "FOO", | ||
"type": "", | ||
"local_as": 65534, | ||
"apply_groups": [], | ||
"multihop_ttl": 0, | ||
"remove_private_as": false, | ||
"remote_as": 65534, | ||
"import_policy": "", | ||
"export_policy": "", | ||
"neighbors": { | ||
"192.0.2.2": { | ||
"local_address": "", | ||
"authentication_key": "", | ||
"description": "FOO", | ||
"nhs": false, | ||
"local_as": 65534, | ||
"route_reflector_client": false, | ||
"remote_as": 65534, | ||
"import_policy": "", | ||
"export_policy": "", | ||
"prefix_limit": {} | ||
}, | ||
"192.0.2.3": { | ||
"local_address": "", | ||
"authentication_key": "", | ||
"description": "SECOND-PEER", | ||
"nhs": true, | ||
"local_as": 65534, | ||
"route_reflector_client": false, | ||
"remote_as": 65534, | ||
"import_policy": "", | ||
"export_policy": "", | ||
"prefix_limit": {} | ||
} | ||
}, | ||
"prefix_limit": {}, | ||
"multipath": false | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...est_get_bgp_config/issue_905_group_copydown/show_running_config___section_router_bgp.text
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 @@ | ||
router bgp 65534 | ||
router-id 192.0.2.1 | ||
neighbor FOO-GROUP peer group | ||
neighbor FOO-GROUP next-hop-self | ||
neighbor FOO-GROUP description FOO | ||
neighbor FOO-GROUP remote-as 65534 | ||
neighbor 192.0.2.2 peer group FOO-GROUP | ||
no neighbor 192.0.2.2 next-hop-self | ||
neighbor 192.0.2.3 peer group FOO-GROUP | ||
neighbor 192.0.2.3 description SECOND-PEER | ||
! |
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