Skip to content

Commit

Permalink
renderend
Browse files Browse the repository at this point in the history
  • Loading branch information
roverflow committed Nov 21, 2024
1 parent a42abad commit 53f373c
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
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) == []
15 changes: 15 additions & 0 deletions tests/integration/targets/nxos_vrf_address_family/vars/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,18 @@ overridden:
- route-target import 65512:200
- export map 26
- export vrf default map 46 allow-vpn
rendered:
commands:
- vrf context VRF1
- address-family ipv6 unicast
- maximum routes 500 60 reinstall 80
- route-target export 65512:200
- export map 22
- export vrf default map 44 allow-vpn
- export vrf allow-vpn
- vrf context temp
- address-family ipv4 unicast
- maximum routes 1000
- route-target import 65512:200
- export map 26
- export vrf default map 46 allow-vpn

0 comments on commit 53f373c

Please sign in to comment.