ansible/test/integration/targets/nxos_pim/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

83 lines
1.5 KiB
YAML

---
- debug: msg="START connection={{ ansible_connection }} nxos_pim sanity test"
- name: "Setup: Disable features"
nxos_feature: &disable_feature
feature: "{{ item }}"
state: disabled
ignore_errors: yes
loop:
- pim
- bfd
- name: "Setup: Enable features"
nxos_feature:
feature: "{{ item }}"
state: enabled
loop:
- pim
- bfd
- name: "Setup: Configure ssm_range none"
nxos_pim: &none
ssm_range: "none"
- block:
- name: Initial config from none
nxos_pim: &configure
bfd: enable
ssm_range:
- "239.128.1.0/24"
- "224.0.0.0/8"
register: result
- assert: &true
that:
- "result.changed == true"
- name: Initial config idempotence
nxos_pim: *configure
register: result
- assert: &false
that:
- "result.changed == false"
- name: Configure ssm_range default
nxos_pim: &conf_default
bfd: disable
ssm_range: "default"
register: result
- assert: *true
- name: ssm_range default idempotence
nxos_pim: *conf_default
register: result
- assert: *false
- name: Configure ssm_range none
nxos_pim: *none
register: result
- assert: *true
- meta: end_play
- name: ssm_range none idempotence
nxos_pim: *none
register: result
- assert: *false
always:
- name: "Teardown: Disable features"
nxos_feature:
feature: "{{ item }}"
state: disabled
ignore_errors: yes
loop:
- pim
- bfd
- debug: msg="END connection={{ ansible_connection }} nxos_pim sanity test"