diff options
author | saichint <saichint@cisco.com> | 2018-02-05 06:29:13 +0100 |
---|---|---|
committer | Trishna Guha <trishnaguha17@gmail.com> | 2018-02-05 06:29:13 +0100 |
commit | 109bc89bbec05453db12ec433220a84819ea1a0d (patch) | |
tree | 27e7b5fa111d1f77d3a4374b3ffe4e452fd9b82a /test/integration/targets/nxos_ospf_vrf | |
parent | cs_network: implement support acl (#35706) (diff) | |
download | ansible-109bc89bbec05453db12ec433220a84819ea1a0d.tar.xz ansible-109bc89bbec05453db12ec433220a84819ea1a0d.zip |
fix nxos_ospf_vrf issues (#35616)
Diffstat (limited to 'test/integration/targets/nxos_ospf_vrf')
-rw-r--r-- | test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml | 72 |
1 files changed, 65 insertions, 7 deletions
diff --git a/test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml b/test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml index 9535c2ea0a..3d8b0a6c5d 100644 --- a/test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_ospf_vrf/tests/common/sanity.yaml @@ -39,15 +39,65 @@ that: - "result.changed == false" - rescue: - - name: "Disable feature OSPF" - nxos_feature: - feature: ospf - state: disabled + - name: Configure ospf vrf + nxos_ospf_vrf: &config1 + ospf: 2 + auto_cost: 5000 + timer_throttle_spf_hold: 1100 + timer_throttle_lsa_max: 2222 + default_metric: 1000 + log_adjacency: log + vrf: default + passive_interface: true + state: present provider: "{{ connection }}" - ignore_errors: yes + register: result + + - assert: *true + + - name: "Check Idempotence" + nxos_ospf_vrf: *config1 + register: result + + - assert: *false + + - name: Configure ospf vrf + nxos_ospf_vrf: &config2 + ospf: 2 + auto_cost: default + default_metric: default + log_adjacency: default + timer_throttle_spf_hold: default + passive_interface: false + vrf: default + state: present + provider: "{{ connection }}" + register: result + + - assert: *true + + - name: "Check Idempotence" + nxos_ospf_vrf: *config2 + register: result + + - assert: *false + + - name: Unconfigure ospf vrf + nxos_ospf_vrf: &unconfig1 + ospf: 2 + vrf: default + state: absent + provider: "{{ connection }}" + register: result + + - assert: *true + + - name: "Check Idempotence" + nxos_ospf_vrf: *unconfig1 + register: result + + - assert: *false - always: - name: Unconfigure ospf vrf nxos_ospf_vrf: &unconfig ospf: 1 @@ -64,4 +114,12 @@ - assert: *false + always: + - name: "Disable feature OSPF" + nxos_feature: + feature: ospf + state: disabled + provider: "{{ connection }}" + ignore_errors: yes + - debug: msg="END connection={{ ansible_connection }} nxos_ospf_vrf sanity test" |