nxos_vlan purge (#38202)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha
2018-04-03 02:53:44 -04:00
committed by GitHub
parent 24cc6b80bd
commit 119352b538
2 changed files with 37 additions and 0 deletions

View File

@@ -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