-
Notifications
You must be signed in to change notification settings - Fork 109
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
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
tests/integration/targets/nxos_vrf_address_family/tests/common/rendered.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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
- ansible.builtin.debug: | ||
msg: START nxos_vrf_address_family rendered integration tests on connection={{ ansible_connection }} | ||
|
||
- ansible.builtin.include_tasks: _remove_config.yaml | ||
|
||
- block: | ||
- name: Render provided configuration with device configuration | ||
register: result | ||
cisco.nxos.nxos_vrf_address_family: | ||
config: | ||
- name: VRF1 | ||
address_families: | ||
- afi: ipv6 | ||
safi: unicast | ||
route_target: | ||
- export: 65512:200 | ||
maximum: | ||
max_routes: 500 | ||
max_route_options: | ||
threshold: | ||
threshold_value: 60 | ||
reinstall_threshold: 80 | ||
export: | ||
- map: "22" | ||
- vrf: | ||
allow_vpn: true | ||
map_import: "44" | ||
- vrf: | ||
allow_vpn: true | ||
- name: temp | ||
address_families: | ||
- afi: ipv4 | ||
safi: unicast | ||
route_target: | ||
- import: 65512:200 | ||
maximum: | ||
max_routes: 1000 | ||
export: | ||
- map: "26" | ||
- vrf: | ||
allow_vpn: true | ||
map_import: "46" | ||
state: rendered | ||
|
||
- ansible.builtin.assert: | ||
that: | ||
- result.changed == false | ||
- result.rendered|symmetric_difference(rendered.commands) == [] |
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