fix nxos test failure (#60928)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/60963/head
Trishna Guha 5 years ago committed by GitHub
parent 2e9b9d2a70
commit 41dc8e84e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,7 +10,7 @@
feature: lacp feature: lacp
- name: Setup1 - name: Setup1
nxos_config: &cleanup nxos_config:
lines: lines:
- "no channel-group 10" - "no channel-group 10"
parents: "{{ item }}" parents: "{{ item }}"
@ -62,8 +62,15 @@
- "result.changed == false" - "result.changed == false"
always: always:
- name: teardown - name: Teardown
nxos_config: *cleanup nxos_config:
lines:
- "no channel-group 10"
parents: "{{ item }}"
ignore_errors: yes
loop:
- "interface {{ test_int1 }}"
- "interface {{ test_int2 }}"
- name: disable feature lacp - name: disable feature lacp
nxos_feature: nxos_feature:

@ -10,7 +10,7 @@
feature: lacp feature: lacp
- name: Setup - name: Setup
nxos_config: &cleanup nxos_config:
lines: lines:
- "no channel-group" - "no channel-group"
parents: "{{ item }}" parents: "{{ item }}"
@ -56,7 +56,14 @@
always: always:
- name: Teardown - name: Teardown
nxos_config: *cleanup nxos_config:
lines:
- "no channel-group"
parents: "{{ item }}"
ignore_errors: yes
loop:
- "interface {{ test_int1 }}"
- "interface {{ test_int2 }}"
- name: Disable feature lacp - name: Disable feature lacp
nxos_feature: nxos_feature:

@ -11,7 +11,7 @@
feature: lacp feature: lacp
- name: setup1 - name: setup1
nxos_config: &cleanup1 nxos_config:
lines: lines:
- "no channel-group 10" - "no channel-group 10"
parents: "{{ item }}" parents: "{{ item }}"
@ -75,10 +75,18 @@
- "result.changed == false" - "result.changed == false"
always: always:
- name: teardown1 - name: teardown1
nxos_config: *cleanup1 nxos_config:
lines:
- "no channel-group 10"
parents: "{{ item }}"
ignore_errors: yes
loop:
- "interface {{ test_int1 }}"
- "interface {{ test_int2 }}"
- name: teardown2 - name: teardown2
nxos_config: *cleanup2 nxos_config: *cleanup2
ignore_errors: yes
- name: disable feature lacp - name: disable feature lacp
nxos_feature: nxos_feature:

@ -73,9 +73,11 @@
always: always:
- name: teardown1 - name: teardown1
nxos_config: *cleanup1 nxos_config: *cleanup1
ignore_errors: yes
- name: teardown2 - name: teardown2
nxos_config: *cleanup2 nxos_config: *cleanup2
ignore_errors: yes
- name: disable feature lacp - name: disable feature lacp
nxos_feature: nxos_feature:

Loading…
Cancel
Save