fix nxos test failure (#60928)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2019-08-20 16:14:00 +05:30 committed by GitHub
parent 2e9b9d2a70
commit 41dc8e84e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 7 deletions

View file

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

View file

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

View file

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

View file

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