mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user