8e8b469416
* 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 commit63e16431b7
) * Skip N35 and N3L platforms for nxos_evpn_global test (#40333) (cherry picked from commitad69ef88e7
) * add normalize_interface in module_utils and fix nxos_l3_interface module (#40598) Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commit0b7932db30
) * 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 commitd04a989bd2
) * 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 commitd829ff6993
) * fix nxos_vrf and migrate get_interface_type to module_utils (#40825) Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commitb4baa2d484
) * 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>
75 lines
1.9 KiB
YAML
75 lines
1.9 KiB
YAML
---
|
|
- 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
|
|
|
|
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"
|