From b8cb382a40233b6dc818d7c9c6a56352e0dd56d5 Mon Sep 17 00:00:00 2001 From: saichint Date: Tue, 3 Apr 2018 23:07:37 -0700 Subject: [PATCH] nxos_acl_interface tests addition (#38230) --- .../nxos_acl_interface/tests/common/sanity.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/test/integration/targets/nxos_acl_interface/tests/common/sanity.yaml b/test/integration/targets/nxos_acl_interface/tests/common/sanity.yaml index 8d463d36956..f397c2c2739 100644 --- a/test/integration/targets/nxos_acl_interface/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_acl_interface/tests/common/sanity.yaml @@ -16,11 +16,21 @@ provider: "{{ connection }}" 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" nxos_acl: &remove name: ANSIBLE_ACL seq: 10 - state: absent + state: delete_acl provider: "{{ connection }}" ignore_errors: yes @@ -112,9 +122,9 @@ nxos_config: *default ignore_errors: yes + always: - name: Remove possible configured ACL nxos_acl: *remove ignore_errors: yes - always: - debug: msg="END connection={{ ansible_connection }} nxos_acl_interface sanity test"