Skip to content

Commit

Permalink
fix deleted test
Browse files Browse the repository at this point in the history
  • Loading branch information
roverflow committed Nov 18, 2024
1 parent 5edc612 commit c53130d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
- name: Assert that before dicts are correctly generated
ansible.builtin.assert:
that:
- "{{ general['after'] | symmetric_difference(res_before['before']) | length == 0 }}"
- "{{ general['after'] | symmetric_difference(result['before']) | length == 0 }}"

- name: Assert that after dicts are correctly generated
ansible.builtin.assert:
that:
- deleted['after'] == res_after['after']
- deleted['after'] == result['after']

- name: Delete provided VRF global (idempotent)
register: result
Expand Down
42 changes: 41 additions & 1 deletion tests/integration/targets/nxos_vrf_address_family/vars/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
---
general:
after:
- address_families:
- afi: ipv4
export:
- map: "22"
- vrf:
allow_vpn: true
map_import: "44"
- vrf:
allow_vpn: true
maximum:
max_route_options:
threshold:
reinstall_threshold: 44
threshold_value: 22
max_routes: 900
route_target:
- import: "64512:200"
- export: "64512:200"
safi: unicast
name: VRF1
merged:
after:
- address_families:
Expand Down Expand Up @@ -48,7 +70,25 @@ merged:
- import vrf default map 44 advertise-vpn
- import vrf advertise-vpn
deleted:
commands: []
after:
- address_families:
- afi: ipv4
export:
- vrf:
allow_vpn: true
map_import: "44"
- vrf:
allow_vpn: true
route_target:
- export: "64512:200"
safi: unicast
name: VRF1
commands:
- vrf context VRF1
- address-family ipv4 unicast
- no maximum routes 900 22 reinstall 44
- no route-target import 64512:200
- no export map 22
gathered:
- name: VRF1
address_families:
Expand Down

0 comments on commit c53130d

Please sign in to comment.