4fe08441be
* Warn on tests used as filters * Update docs, add aliases for tests that fit more gramatically with test syntax * Fix rst formatting * Add successful filter, alias of success * Remove renamed_deprecation, it was overkill * Make directory alias for is_dir * Update tests to use proper jinja test syntax * Update additional documentation, living outside of YAML files, to reflect proper jinja test syntax * Add conversion script, porting guide updates, and changelog updates * Update newly added uses of tests as filters * No underscore variable * Convert recent tests as filter changes to win_stat * Fix some changes related to rebasing a few integration tests * Make tests_as_filters_warning explicitly accept the name of the test, instead of inferring the name * Add test for tests_as_filters_warning * Update tests as filters in newly added/modified tests * Address recent changes to several integration tests * Address recent changes in cs_vpc
73 lines
1.8 KiB
YAML
73 lines
1.8 KiB
YAML
---
|
|
- debug: msg="START TRANSPORT:{{ connection.transport }} nxos_evpn_global sanity test"
|
|
|
|
- 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'))
|
|
|
|
rescue:
|
|
- debug: msg="TRANSPORT:{{ connection.transport }} 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 TRANSPORT:{{ connection.transport }} nxos_evpn_global sanity test"
|