mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
b8cd646afd
* junos_lldp_interface module implementation * junos_lldp_interface integration test * net_lldp_interface module intgration test for junos * Add lldp configuration parameter in junos_lldp * Modify junos_lldp testcase as per above change * Add net_lldp_interface module documentation
50 lines
893 B
YAML
50 lines
893 B
YAML
---
|
|
- debug: msg="START net_lldp junos/basic.yaml"
|
|
|
|
|
|
- name: setup - remove lldp
|
|
net_lldp:
|
|
state: absent
|
|
provider: "{{ netconf }}"
|
|
|
|
- name: configure lldp
|
|
net_lldp:
|
|
state: present
|
|
provider: "{{ netconf }}"
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == true"
|
|
- "'- disable;' in result.diff.prepared"
|
|
|
|
- name: configure lldp (idempotent)
|
|
net_lldp:
|
|
state: present
|
|
provider: "{{ netconf }}"
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == false"
|
|
|
|
- name: Disable lldp
|
|
net_lldp:
|
|
state: absent
|
|
provider: "{{ netconf }}"
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == true"
|
|
- "'+ disable;' in result.diff.prepared"
|
|
|
|
- name: Disable lldp (idempotent)
|
|
net_lldp:
|
|
state: absent
|
|
provider: "{{ netconf }}"
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == false"
|