summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_command/tests/cli/greaterthan.yaml
blob: 9ba3635fb3e286f9bd12b3b7d091af27810ff387 (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
31
32
---
- debug: msg="START cli/greaterthan.yaml"

- name: test gt operator
  nxos_command:
    commands:
      - show version
      - show interface mgmt0 | json
    wait_for:
      - "result[1].TABLE_interface.ROW_interface.eth_ip_mask gt 0"
    provider: "{{ cli }}"
  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"
    provider: "{{ cli }}"
  register: result

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

- debug: msg="END cli/greaterthan.yaml"