mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
c822292347
* add static route and hsrp it cases * add snmp_user and snapshot it * password strength correction * fix typo * add compare snapshot as it is fixed in the code now * skip snapshot tests for titanium * titanium and nxapi conditions added
61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
---
|
|
- debug: msg="START TRANSPORT:{{ connection.transport }} nxos_static_route sanity test"
|
|
|
|
- block:
|
|
- name: create static route
|
|
nxos_static_route: &configure
|
|
prefix: "192.168.20.64/24"
|
|
next_hop: "3.3.3.3"
|
|
route_name: testing
|
|
pref: 100
|
|
tag: 5500
|
|
vrf: testing
|
|
provider: "{{ connection }}"
|
|
register: result
|
|
|
|
- assert: &true
|
|
that:
|
|
- "result.changed == true"
|
|
|
|
- name: "Conf Idempotence"
|
|
nxos_static_route: *configure
|
|
register: result
|
|
|
|
- assert: &false
|
|
that:
|
|
- "result.changed == false"
|
|
|
|
- name: remove static route
|
|
nxos_static_route: &remove
|
|
prefix: "192.168.20.64/24"
|
|
next_hop: "3.3.3.3"
|
|
route_name: testing
|
|
pref: 100
|
|
tag: 5500
|
|
vrf: testing
|
|
state: absent
|
|
provider: "{{ connection }}"
|
|
register: result
|
|
|
|
- assert: *true
|
|
|
|
- name: "Remove Idempotence"
|
|
nxos_static_route: *remove
|
|
register: result
|
|
|
|
- assert: *false
|
|
|
|
always:
|
|
- name: remove static route
|
|
nxos_static_route:
|
|
prefix: "192.168.20.64/24"
|
|
next_hop: "3.3.3.3"
|
|
route_name: testing
|
|
pref: 100
|
|
tag: 5500
|
|
vrf: testing
|
|
state: absent
|
|
provider: "{{ connection }}"
|
|
ignore_errors: yes
|
|
|
|
- debug: msg="END TRANSPORT:{{ connection.transport }} nxos_static_route sanity test"
|