|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
---
|
|
|
|
|
- debug: msg="START connection={{ ansible_connection }} nxos_overlay_global sanity test"
|
|
|
|
|
- debug: msg="Using provider={{ connection.transport }}"
|
|
|
|
|
when: ansible_connection == "local"
|
|
|
|
|
|
|
|
|
|
- set_fact: overlay_global_supported="false"
|
|
|
|
@ -16,10 +15,9 @@
|
|
|
|
|
- name: "Enable nv overlay evpn"
|
|
|
|
|
nxos_evpn_global: &enable_evpn
|
|
|
|
|
nv_overlay_evpn: true
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
|
|
|
|
|
- name: "Apply N7K specific setup config"
|
|
|
|
|
include: targets/nxos_overlay_global/tasks/platform/n7k/setup.yaml
|
|
|
|
|
include: tasks/platform/n7k/setup.yaml
|
|
|
|
|
when: platform is match('N7K')
|
|
|
|
|
|
|
|
|
|
- name: "Configure Additional N7K requiste features"
|
|
|
|
@ -28,13 +26,11 @@
|
|
|
|
|
- feature-set fabric
|
|
|
|
|
- feature fabric forwarding
|
|
|
|
|
match: none
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
when: platform is match('N7K')
|
|
|
|
|
|
|
|
|
|
- name: "Remove possibly existing mac"
|
|
|
|
|
nxos_overlay_global:
|
|
|
|
|
anycast_gateway_mac: "default"
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
|
|
when: overlay_global_supported
|
|
|
|
@ -45,7 +41,6 @@
|
|
|
|
|
- name: Configure overlay global
|
|
|
|
|
nxos_overlay_global: &configure
|
|
|
|
|
anycast_gateway_mac: "b.b.b"
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
- assert: &true
|
|
|
|
@ -63,7 +58,6 @@
|
|
|
|
|
- name: Update anycast gateway mac
|
|
|
|
|
nxos_overlay_global: &update
|
|
|
|
|
anycast_gateway_mac: "a.a.a"
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
- assert: *true
|
|
|
|
@ -78,7 +72,6 @@
|
|
|
|
|
- name: Remove anycast gateway mac
|
|
|
|
|
nxos_overlay_global: &remove
|
|
|
|
|
anycast_gateway_mac: "default"
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
- assert: *true
|
|
|
|
@ -93,13 +86,12 @@
|
|
|
|
|
|
|
|
|
|
always:
|
|
|
|
|
- name: "Apply N7K specific cleanup config"
|
|
|
|
|
include: targets/nxos_overlay_global/tasks/platform/n7k/cleanup.yaml
|
|
|
|
|
include: tasks/platform/n7k/cleanup.yaml
|
|
|
|
|
when: platform is match('N7K')
|
|
|
|
|
|
|
|
|
|
- name: "Disable nv overlay evpn"
|
|
|
|
|
nxos_evpn_global: &disable_evpn
|
|
|
|
|
nv_overlay_evpn: false
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
ignore_errors: yes
|
|
|
|
|
when: overlay_global_supported
|
|
|
|
|
|
|
|
|
|