summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_command/tests/common/greaterthanorequal.yaml
blob: 3e0c27ca73b398eaee10f30ab0cbd125627d2d0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
- debug: msg="START common/greaterthanorequal.yaml on connection={{ ansible_connection }}"

- name: test ge operator
  nxos_command:
    commands:
      - show version
      - show interface mgmt0 | json
    wait_for:
      - "result[1].TABLE_interface.ROW_interface.eth_ip_mask ge 0"
  register: result

- assert:
    that:
      - "result.changed == false"

- name: test >= operator
  nxos_command:
    commands:
      - show version
      - show interface mgmt0 | json
    wait_for:
      - "result[1].TABLE_interface.ROW_interface.eth_ip_mask >= 0"
  register: result

- assert:
    that:
      - "result.changed == false"

- debug: msg="END common/greaterthanorequal.yaml on connection={{ ansible_connection }}"