mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
nxos_vlan purge (#38202)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
24cc6b80bd
commit
119352b538
2 changed files with 37 additions and 0 deletions
|
@ -63,6 +63,27 @@
|
|||
that:
|
||||
- 'result.changed == false'
|
||||
|
||||
- name: purge
|
||||
nxos_vlan: &purge
|
||||
vlan_id: 1
|
||||
purge: yes
|
||||
provider: "{{ connection }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- 'result.changed == true'
|
||||
- '"no vlan 102" in result.commands'
|
||||
- '"no vlan 103" in result.commands'
|
||||
|
||||
- name: purge - Idempotence
|
||||
nxos_vlan: *purge
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- 'result.changed == false'
|
||||
|
||||
- name: teardown
|
||||
nxos_config: *rm
|
||||
ignore_errors: yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue