Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nxos_evpn_vni: exclude legacy N3k from sanity test #53452

Merged
merged 1 commit into from
Mar 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 17 additions & 11 deletions test/integration/targets/nxos_evpn_vni/tests/common/sanity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
- debug: msg="Using provider={{ connection.transport }}"
when: ansible_connection == "local"

- set_fact: nvoe_supported="{{ platform is not search('N3K|N3L|N35')}}"

- name: "Setup"
nxos_config: &remove_evpn
lines: no nv overlay evpn
match: none
provider: "{{ connection }}"
ignore_errors: yes
when: nvoe_supported

- block:
- name: "Enable feature BGP"
Expand Down Expand Up @@ -99,18 +102,21 @@

- assert: *false

when: not (platform is search('N3K')) and not (platform is match('N35'))
when: nvoe_supported

always:
- name: "Remove nv overlay evpn"
nxos_config: *remove_evpn
ignore_errors: yes

- name: "Disable feature bgp"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes
always:
- block:
- name: "Remove nv overlay evpn"
nxos_config: *remove_evpn
ignore_errors: yes

- name: "Disable feature bgp"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes
when: nvoe_supported

- debug: msg="END connection={{ ansible_connection }} nxos_evpn_vni sanity test"