mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
nxos_evpn_vni: exclude legacy N3k from sanity test (#53452)
The test was only skipping N3K|N35, needs to also skip N3L (legacy n3048 chassis).
This commit is contained in:
parent
4d407d1781
commit
495bd02dbf
1 changed files with 16 additions and 10 deletions
|
@ -3,12 +3,15 @@
|
||||||
- debug: msg="Using provider={{ connection.transport }}"
|
- debug: msg="Using provider={{ connection.transport }}"
|
||||||
when: ansible_connection == "local"
|
when: ansible_connection == "local"
|
||||||
|
|
||||||
|
- set_fact: nvoe_supported="{{ platform is not search('N3K|N3L|N35')}}"
|
||||||
|
|
||||||
- name: "Setup"
|
- name: "Setup"
|
||||||
nxos_config: &remove_evpn
|
nxos_config: &remove_evpn
|
||||||
lines: no nv overlay evpn
|
lines: no nv overlay evpn
|
||||||
match: none
|
match: none
|
||||||
provider: "{{ connection }}"
|
provider: "{{ connection }}"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
when: nvoe_supported
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: "Enable feature BGP"
|
- name: "Enable feature BGP"
|
||||||
|
@ -99,18 +102,21 @@
|
||||||
|
|
||||||
- assert: *false
|
- assert: *false
|
||||||
|
|
||||||
when: not (platform is search('N3K')) and not (platform is match('N35'))
|
when: nvoe_supported
|
||||||
|
|
||||||
|
|
||||||
always:
|
always:
|
||||||
- name: "Remove nv overlay evpn"
|
- block:
|
||||||
nxos_config: *remove_evpn
|
- name: "Remove nv overlay evpn"
|
||||||
ignore_errors: yes
|
nxos_config: *remove_evpn
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: "Disable feature bgp"
|
- name: "Disable feature bgp"
|
||||||
nxos_feature:
|
nxos_feature:
|
||||||
feature: bgp
|
feature: bgp
|
||||||
provider: "{{ connection }}"
|
provider: "{{ connection }}"
|
||||||
state: disabled
|
state: disabled
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
when: nvoe_supported
|
||||||
|
|
||||||
- debug: msg="END connection={{ ansible_connection }} nxos_evpn_vni sanity test"
|
- debug: msg="END connection={{ ansible_connection }} nxos_evpn_vni sanity test"
|
||||||
|
|
Loading…
Reference in a new issue