ansible/test/integration/targets/nxos_evpn_vni/tests/common/sanity.yaml
nkshrishail 01e4c41be4 nxos: Removing local-nxapi plugin and related parameters' usage from the integration tests. (#65068)
* nxos_integration_tests: Removing obsolete provider parameter

* nxos: removing support for local-nxapi plugin

* nxos: removing LocalNxapi plugin implementation

* nxos_nxapi: removing local plugin usage

* REVERT - nxos: removing LocalNxapi plugin implementation

* Addressing yamllint issues

* Removing the condition on the debug messages

* Restoring changes done to nxos_nxapi* tests

* Retaining timeout of 500 on nxos_smoke test

* Some cleanup

* Addressing latest comments

* Restoring the nxos_smoke and removing timeout from nxos_config and nxos_rollback
2020-01-08 13:43:23 +05:30

112 lines
2.2 KiB
YAML

---
- debug: msg="START connection={{ ansible_connection }} nxos_evpn_vni sanity test"
- set_fact: nvoe_supported="{{ platform is not search('N3K|N3L|N35')}}"
- name: "Setup"
nxos_config: &remove_evpn
lines: no nv overlay evpn
match: none
ignore_errors: yes
when: nvoe_supported
- block:
- name: "Enable feature BGP"
nxos_feature:
feature: bgp
state: enabled
- name: "Enable nv overlay evpn"
nxos_config:
lines: nv overlay evpn
match: none
- name: "Configure nxos_evpn_vni"
nxos_evpn_vni: &evpn_vni
vni: 6000
route_distinguisher: "60:10"
route_target_import:
- auto
- "5000:10"
- "4100:100"
route_target_export:
- auto
- "5000:10"
- "192.0.2.1:43"
register: result
- assert: &true
that:
- "result.changed == true"
- name: "Check Idempotence"
nxos_evpn_vni: *evpn_vni
register: result
- assert: &false
that:
- "result.changed == false"
- name: "Configure nxos_evpn_vni"
nxos_evpn_vni: &evpn_vni1
vni: 6000
route_distinguisher: "50:20"
route_target_import: auto
route_target_export: auto
register: result
- assert: *true
- name: "Check Idempotence"
nxos_evpn_vni: *evpn_vni1
register: result
- assert: *false
- name: "Configure nxos_evpn_vni"
nxos_evpn_vni: &evpn_vni_def
vni: 6000
route_distinguisher: default
route_target_import: default
route_target_export: default
register: result
- assert: *true
- name: "Check Idempotence"
nxos_evpn_vni: *evpn_vni_def
register: result
- assert: *false
- name: "remove nxos_evpn_vni"
nxos_evpn_vni: &rvni
vni: 6000
state: absent
register: result
- assert: *true
- name: "Check Idempotence"
nxos_evpn_vni: *rvni
register: result
- assert: *false
when: nvoe_supported
always:
- block:
- name: "Remove nv overlay evpn"
nxos_config: *remove_evpn
ignore_errors: yes
- name: "Disable feature bgp"
nxos_feature:
feature: bgp
state: disabled
ignore_errors: yes
when: nvoe_supported
- debug: msg="END connection={{ ansible_connection }} nxos_evpn_vni sanity test"