diff options
author | saichint <saichint@cisco.com> | 2018-03-06 00:06:50 -0800 |
---|---|---|
committer | Trishna Guha <trishnaguha17@gmail.com> | 2018-03-06 13:36:50 +0530 |
commit | 4ed0e5072d4e45b0993ac223929e7a8421166841 (patch) | |
tree | e1b31867c2d835fe6ae4fa3c0dfe2c7b0f58c3c2 /test/integration/targets/nxos_vrrp | |
parent | 51e8eab9db343177700640eb42709ba8facee035 (diff) | |
download | ansible-4ed0e5072d4e45b0993ac223929e7a8421166841.tar.gz |
fix nxos_vrrp issues (#36930)
Diffstat (limited to 'test/integration/targets/nxos_vrrp')
-rw-r--r-- | test/integration/targets/nxos_vrrp/tests/common/sanity.yaml | 45 |
1 files changed, 40 insertions, 5 deletions
diff --git a/test/integration/targets/nxos_vrrp/tests/common/sanity.yaml b/test/integration/targets/nxos_vrrp/tests/common/sanity.yaml index ae915ff573..67b7b2acd9 100644 --- a/test/integration/targets/nxos_vrrp/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_vrrp/tests/common/sanity.yaml @@ -26,7 +26,7 @@ interface: vlan10 group: 100 vip: 10.1.100.1 - admin_state: shutdown + admin_state: 'no shutdown' provider: "{{ connection }}" register: result @@ -42,13 +42,27 @@ that: - "result.changed == false" + - name: Ensure vrrp group 100 is default + nxos_vrrp: &configure_def + interface: vlan10 + group: 100 + vip: default + admin_state: default + provider: "{{ connection }}" + register: result + + - assert: *true + + - name: "Conf Idempotence" + nxos_vrrp: *configure_def + register: result + + - assert: *false + - name: Ensure removal of the vrrp group config - # vip is required to ensure the user knows what they are removing nxos_vrrp: &remove interface: vlan10 group: 100 - vip: 10.1.100.1 - admin_state: shutdown state: absent provider: "{{ connection }}" register: result @@ -72,7 +86,8 @@ interface: vlan10 group: 100 vip: 10.1.100.1 - preempt: false + preempt: False + interval: 10 priority: 130 authentication: AUTHKEY provider: "{{ connection }}" @@ -86,6 +101,26 @@ - assert: *false + - name: Re-config with defaults + nxos_vrrp: &reconfig_def + interface: vlan10 + group: 100 + vip: default + preempt: True + interval: default + priority: default + authentication: default + provider: "{{ connection }}" + register: result + + - assert: *true + + - name: "Reconfig Idempotence" + nxos_vrrp: *reconfig_def + register: result + + - assert: *false + always: - name: remove vrrp nxos_vrrp: *remove |