|
|
@ -17,7 +17,7 @@
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "result.changed == true"
|
|
|
|
- "result.changed == true"
|
|
|
|
- "'+ interface ge-0/0/5;' in result.diff.prepared"
|
|
|
|
- result.diff.prepared | search("\+ *interface ge-0/0/5")
|
|
|
|
|
|
|
|
|
|
|
|
- name: lldp interface configuration (idempotent)
|
|
|
|
- name: lldp interface configuration (idempotent)
|
|
|
|
net_lldp_interface:
|
|
|
|
net_lldp_interface:
|
|
|
@ -40,7 +40,7 @@
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "result.changed == true"
|
|
|
|
- "result.changed == true"
|
|
|
|
- "'[edit protocols lldp interface ge-0/0/5]\n+ disable;' in result.diff.prepared"
|
|
|
|
- result.diff.prepared | search("\+ *disable")
|
|
|
|
|
|
|
|
|
|
|
|
- name: Enable lldp on particular interface
|
|
|
|
- name: Enable lldp on particular interface
|
|
|
|
net_lldp_interface:
|
|
|
|
net_lldp_interface:
|
|
|
@ -52,7 +52,7 @@
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "result.changed == true"
|
|
|
|
- "result.changed == true"
|
|
|
|
- "'[edit protocols lldp interface ge-0/0/5]\n- disable;' in result.diff.prepared"
|
|
|
|
- result.diff.prepared | search("\+ *disable")
|
|
|
|
|
|
|
|
|
|
|
|
- name: Delete lldp on particular interface
|
|
|
|
- name: Delete lldp on particular interface
|
|
|
|
net_lldp_interface:
|
|
|
|
net_lldp_interface:
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "result.changed == true"
|
|
|
|
- "result.changed == true"
|
|
|
|
- "'[edit protocols lldp]\n- interface ge-0/0/5;' in result.diff.prepared"
|
|
|
|
- result.diff.prepared | search("\- *interface ge-0/0/5")
|
|
|
|
|
|
|
|
|
|
|
|
- name: Delete lldp on particular interface (idempotent)
|
|
|
|
- name: Delete lldp on particular interface (idempotent)
|
|
|
|
net_lldp_interface:
|
|
|
|
net_lldp_interface:
|
|
|
|