1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-30 07:50:43 +00:00

nxos_interface: Fix admin_state check for n6k (#55673)

* Fix admin_state check for n6k

* Fix rx and tx_rate intent check test
This commit is contained in:
Mike Wiebe 2019-05-08 11:50:22 -04:00 committed by Trishna Guha
parent a5b6a161b5
commit bceca72eb7
2 changed files with 22 additions and 2 deletions

View file

@ -26,11 +26,16 @@
that:
- "result.failed == false"
- name: "Clear interface {{ testint2 }} counters before next task"
nxos_command:
commands: "clear counters interface {{ testint2 }}"
ignore_errors: yes
- name: Check intent arguments (failed condition)
nxos_interface:
name: "{{ testint2 }}"
admin_state: down
tx_rate: gt(0)
tx_rate: gt(10000)
rx_rate: lt(0)
provider: "{{ connection }}"
ignore_errors: yes
@ -39,7 +44,7 @@
- assert:
that:
- "result.failed == true"
- "'tx_rate gt(0)' in result.failed_conditions"
- "'tx_rate gt(10000)' in result.failed_conditions"
- "'rx_rate lt(0)' in result.failed_conditions"
- name: aggregate definition of interface