summaryrefslogtreecommitdiff
path: root/test/integration/targets/vyos_lldp/tests/cli/net_lldp.yaml
blob: e68d5a62ba22d759364de64dbd9bf98f6c2a4840 (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
---
- debug: msg="START vyos cli/net_lldp.yaml on connection={{ ansible_connection }}"

# Add minimal testcase to check args are passed correctly to
# implementation module and module run is successful.

- name: Make sure LLDP is not running - setup
  vyos.vyos.vyos_config:
    lines: delete service lldp

- name: Enable LLDP service using platform agnostic module
  net_lldp:
    state: present
  register: result

- assert:
    that:
      - 'result.changed == true'
      - '"set service lldp" in result.commands'

- name: Make sure LLDP is not running - teardown
  vyos.vyos.vyos_config:
    lines: delete service lldp

- debug: msg="END vyos cli/net_lldp.yaml on connection={{ ansible_connection }}"