ansible/test/integration/targets/nxos_evpn_global/tests/common/sanity.yaml

76 lines
1.9 KiB
YAML
Raw Normal View History

---
- debug: msg="START connection={{ ansible_connection }} nxos_evpn_global sanity test"
- debug: msg="Using provider={{ connection.transport }}"
when: ansible_connection == "local"
- name: "Setup"
nxos_config: &remove_evpn_config
lines: no nv overlay evpn
match: none
provider: "{{ connection }}"
ignore_errors: yes
- name: "Disable feature nv overlay"
nxos_feature: &disable_feature_nv_overlay
feature: nv overlay
state: disabled
provider: "{{ connection }}"
ignore_errors: yes
- block:
- name: "Enable feature nv overlay"
nxos_feature: &enable_feature_nv_overlay
feature: nv overlay
state: enabled
provider: "{{ connection }}"
ignore_errors: yes
- name: "Enable nv overlay evpn"
nxos_evpn_global: &enable_evpn
nv_overlay_evpn: true
provider: "{{ connection }}"
register: result
- assert: &true
that:
- "result.changed == true"
- name: "CHECK IDEMPOTENCE - enable nv overlay evpn"
nxos_evpn_global: *enable_evpn
register: result
- assert: &false
that:
- "result.changed == false"
- name: "Disable nv overlay evpn"
nxos_evpn_global: &disable_evpn
nv_overlay_evpn: false
provider: "{{ connection }}"
register: result
- assert: *true
- name: "CHECK DEMPOTENCE - Disable nv overlay evpn"
nxos_evpn_global: *disable_evpn
register: result
- assert: *false
nxos bugfixes 2.5.4 cherry-pick (#40861) * Fix legacy Nexus 3k integration test and module issues. (#40322) * Add setup ignore_errors for nxos_config test * Fix parse_fan_info for n3k * Skip bidir tests for N3k * Omit vni config for n3k * Skip unsupported nxos_vrf_af test on N3K * Add legacy N3K platform tag (cherry picked from commit 63e16431b7e08d85bd9846a504f63e0d2442a1a8) * Skip N35 and N3L platforms for nxos_evpn_global test (#40333) (cherry picked from commit ad69ef88e7e67d54e42ce8e9ceae4ceaf8c09be5) * add normalize_interface in module_utils and fix nxos_l3_interface module (#40598) Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commit 0b7932db3000d58303462a6d1ff061adeff3c243) * nxos_interface: Disable switchport for loopback/svi (#40314) * nxos_interface: Disable switchport for loopback/svi * Replace interface_type with get_interface_type(name) (cherry picked from commit d04a989bd28b625747664064b8c8f58597b0f575) * fixes bug with matching nxos prompts (#40655) This change addresses an issue where the prompt matching regular expressions would not match a prompt if the hostname starts with a numeric value. Before this change, the connection would fail with a socket.timeout() error. This change updates the termnal_stdout_re values to now check for a number. See Github issue #38639 (cherry picked from commit d829ff6993aa3a7e8123d2188ab04f4bfd88c1d0) * fix nxos_vrf and migrate get_interface_type to module_utils (#40825) Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commit b4baa2d48455029cfe35b14195b2ca4616e540ac) * nxos_vlan fix Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * changelog nxos bugfixes 2.5.4 Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2018-05-30 05:51:53 +00:00
when: not ( platform is search('N3K|N35|N3L'))
rescue:
- debug: msg="connection={{ ansible_connection }} nxos_evpn_global sanity test - FALURE ENCOUNTERED"
always:
- name: "Cleanup - Disable nv overlay evpn"
nxos_config: *remove_evpn_config
ignore_errors: yes
- name: "Cleanup - Disable feature nv overlay"
nxos_feature: *disable_feature_nv_overlay
ignore_errors: yes
- debug: msg="END connection={{ ansible_connection }} nxos_evpn_global sanity test"