From a8e14a35de6e0d46702ad3924d31049a330c3989 Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Wed, 7 Feb 2018 12:48:02 +0530 Subject: [PATCH] always remove interface after testing (#35822) Signed-off-by: Trishna Guha --- .../targets/nxos_l2_interface/tests/common/agg.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/integration/targets/nxos_l2_interface/tests/common/agg.yaml b/test/integration/targets/nxos_l2_interface/tests/common/agg.yaml index 36b4ff7dc2..b7c1b04dc1 100644 --- a/test/integration/targets/nxos_l2_interface/tests/common/agg.yaml +++ b/test/integration/targets/nxos_l2_interface/tests/common/agg.yaml @@ -77,4 +77,13 @@ provider: "{{ connection }}" ignore_errors: yes + - name: "Remove interface aggregate after testing" + nxos_l2_interface: + aggregate: + - { name: "{{ intname1 }}", mode: access, access_vlan: 6 } + - { name: "{{ intname2 }}", mode: access, access_vlan: 15 } + state: absent + provider: "{{ connection }}" + ignore_errors: yes + - debug: msg="END connection={{ ansible_connection }} nxos_l2_interface aggregate test"