fix nxos test failure (#60928)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
2e9b9d2a70
commit
41dc8e84e4
4 changed files with 31 additions and 7 deletions
|
@ -10,7 +10,7 @@
|
|||
feature: lacp
|
||||
|
||||
- name: Setup1
|
||||
nxos_config: &cleanup
|
||||
nxos_config:
|
||||
lines:
|
||||
- "no channel-group 10"
|
||||
parents: "{{ item }}"
|
||||
|
@ -62,8 +62,15 @@
|
|||
- "result.changed == false"
|
||||
|
||||
always:
|
||||
- name: teardown
|
||||
nxos_config: *cleanup
|
||||
- name: Teardown
|
||||
nxos_config:
|
||||
lines:
|
||||
- "no channel-group 10"
|
||||
parents: "{{ item }}"
|
||||
ignore_errors: yes
|
||||
loop:
|
||||
- "interface {{ test_int1 }}"
|
||||
- "interface {{ test_int2 }}"
|
||||
|
||||
- name: disable feature lacp
|
||||
nxos_feature:
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
feature: lacp
|
||||
|
||||
- name: Setup
|
||||
nxos_config: &cleanup
|
||||
nxos_config:
|
||||
lines:
|
||||
- "no channel-group"
|
||||
parents: "{{ item }}"
|
||||
|
@ -56,7 +56,14 @@
|
|||
|
||||
always:
|
||||
- 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
|
||||
nxos_feature:
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
feature: lacp
|
||||
|
||||
- name: setup1
|
||||
nxos_config: &cleanup1
|
||||
nxos_config:
|
||||
lines:
|
||||
- "no channel-group 10"
|
||||
parents: "{{ item }}"
|
||||
|
@ -75,10 +75,18 @@
|
|||
- "result.changed == false"
|
||||
always:
|
||||
- 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
|
||||
nxos_config: *cleanup2
|
||||
ignore_errors: yes
|
||||
|
||||
- name: disable feature lacp
|
||||
nxos_feature:
|
||||
|
|
|
@ -73,9 +73,11 @@
|
|||
always:
|
||||
- name: teardown1
|
||||
nxos_config: *cleanup1
|
||||
ignore_errors: yes
|
||||
|
||||
- name: teardown2
|
||||
nxos_config: *cleanup2
|
||||
ignore_errors: yes
|
||||
|
||||
- name: disable feature lacp
|
||||
nxos_feature:
|
||||
|
|
Loading…
Reference in a new issue