2016-10-28 20:50:29 +02:00
|
|
|
---
|
2018-05-18 00:47:15 +02:00
|
|
|
- debug: msg="START eapi/lessthanorequal.yaml on connection={{ ansible_connection }}"
|
2016-10-28 20:50:29 +02:00
|
|
|
|
|
|
|
- name: test le operator
|
|
|
|
eos_command:
|
|
|
|
commands:
|
|
|
|
- show version
|
2018-05-18 00:47:15 +02:00
|
|
|
- show interfaces Management1 | json
|
2016-10-28 20:50:29 +02:00
|
|
|
wait_for:
|
2018-05-18 00:47:15 +02:00
|
|
|
- "result[1].interfaces.Management1.mtu le 1600"
|
2016-10-28 20:50:29 +02:00
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.changed == false"
|
|
|
|
- "result.stdout is defined"
|
|
|
|
|
|
|
|
- name: test <= operator
|
|
|
|
eos_command:
|
|
|
|
commands:
|
|
|
|
- show version
|
2018-05-18 00:47:15 +02:00
|
|
|
- show interfaces Management1 | json
|
2016-10-28 20:50:29 +02:00
|
|
|
wait_for:
|
2018-05-18 00:47:15 +02:00
|
|
|
- "result[1].interfaces.Management1.mtu <= 1600"
|
2016-10-28 20:50:29 +02:00
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.changed == false"
|
|
|
|
- "result.stdout is defined"
|
|
|
|
|
2018-05-18 00:47:15 +02:00
|
|
|
- debug: msg="END eapi/lessthanorequal.yaml on connection={{ ansible_connection }}"
|