You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/vyos_lldp/tests/cli/net_lldp.yaml

26 lines
686 B
YAML

---
- 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_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_config:
lines: delete service lldp
- debug: msg="END vyos cli/net_lldp.yaml on connection={{ ansible_connection }}"