-
Notifications
You must be signed in to change notification settings - Fork 174
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
8 changed files
with
630 additions
and
220 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
713 changes: 552 additions & 161 deletions
713
plugins/module_utils/network/ios/rm_templates/vrf_address_family.py
Large diffs are not rendered by default.
Oops, something went wrong.
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
21 changes: 13 additions & 8 deletions
21
tests/integration/targets/ios_vrf_address_family/tests/common/_parsed.cfg
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,10 +1,15 @@ | ||
vrf definition test | ||
address-family ipv4 unicast | ||
bgp next-hop loopback 23 | ||
import map "import-map" | ||
import ipv4 multicast 89 map "import-map" | ||
import ipv4 unicast 12 map "ran-map" allow-evpn | ||
export map "testing-map" | ||
export ipv4 multicast 345 map "single" | ||
export ipv4 unicast 67 map "test-map" allow-evpn | ||
address-family ipv4 | ||
import ipv4 unicast 56 map import allow-evpn | ||
export map testing-map2 | ||
export ipv4 unicast 37 map test allow-evpn | ||
mdt auto-discovery pim pim-tlv-announce mdt-hello-enable | ||
mdt auto-discovery receiver-site | ||
route-target export 10.12.0.1:20 | ||
route-target import 10.0.0.1:30 | ||
route-target export 10.12.0.1:20 stitching | ||
route-target import 10.0.0.1:30 stitching | ||
maximum routes 1 2 reinstall 2 | ||
inter-as-hybrid next-hop 1.2.3.4 | ||
bgp next-hop Loopback23 | ||
exit-address-family |
45 changes: 37 additions & 8 deletions
45
tests/integration/targets/ios_vrf_address_family/tests/common/_populate.yaml
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,10 +1,39 @@ | ||
--- | ||
- name: Merge provided configuration with device configuration | ||
- name: Populate VRF configuration | ||
register: result | ||
cisco.ios.ios_config: | ||
lines: | ||
- vrf definition test | ||
- address-family ipv4 unicast | ||
- bgp next-hop loopback 23 | ||
- import map "import-map" | ||
- export map "testing-map" | ||
cisco.ios.ios_vrf_address_family: | ||
config: | ||
- name: test1 | ||
address_families: | ||
- afi: "ipv4" | ||
safi: "unicast" | ||
export: | ||
ipv4: | ||
multicast: | ||
map: "single" | ||
prefix: 345 | ||
unicast: | ||
allow_evpn: true | ||
map: "test-map" | ||
prefix: 67 | ||
map: "testing-map" | ||
import_config: | ||
ipv4: | ||
multicast: | ||
map: "import-map" | ||
prefix: 89 | ||
unicast: | ||
allow_evpn: true | ||
limit: 12 | ||
map: "ran-map" | ||
map: "import-map" | ||
inter_as_hybrid: | ||
csc: | ||
next_hop: "1.2.3.4" | ||
next_hop: "1.0.0.0" | ||
mdt: | ||
auto_discovery: | ||
pim: | ||
pim_tlv_announce: | ||
mdt_hello_enable: true | ||
state: merged |
2 changes: 1 addition & 1 deletion
2
tests/integration/targets/ios_vrf_address_family/tests/common/_remove_config.yaml
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