nxos_acl_interface tests addition (#38230)

This commit is contained in:
saichint 2018-04-03 23:07:37 -07:00 committed by Trishna Guha
parent 3a4fc4af08
commit b8cb382a40

View file

@ -16,11 +16,21 @@
provider: "{{ connection }}" provider: "{{ connection }}"
ignore_errors: yes ignore_errors: yes
- name: "Setup: Put interface into no switch port mode"
nxos_config:
commands:
- "no switchport"
parents:
- "interface {{ intname }}"
match: none
provider: "{{ connection }}"
ignore_errors: yes
- name: "Setup: Cleanup possibly existing acl" - name: "Setup: Cleanup possibly existing acl"
nxos_acl: &remove nxos_acl: &remove
name: ANSIBLE_ACL name: ANSIBLE_ACL
seq: 10 seq: 10
state: absent state: delete_acl
provider: "{{ connection }}" provider: "{{ connection }}"
ignore_errors: yes ignore_errors: yes
@ -112,9 +122,9 @@
nxos_config: *default nxos_config: *default
ignore_errors: yes ignore_errors: yes
always:
- name: Remove possible configured ACL - name: Remove possible configured ACL
nxos_acl: *remove nxos_acl: *remove
ignore_errors: yes ignore_errors: yes
always:
- debug: msg="END connection={{ ansible_connection }} nxos_acl_interface sanity test" - debug: msg="END connection={{ ansible_connection }} nxos_acl_interface sanity test"