mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
nxos_vlan purge (#38202)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user