junos lldp interface test fix (#27946)

pull/27950/head
Ganesh Nalawade 7 years ago committed by GitHub
parent dd8b65395f
commit c05b303db5

@ -66,7 +66,7 @@
- assert:
that:
- "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
junos_lldp_interface:
@ -78,7 +78,7 @@
- assert:
that:
- "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
junos_lldp_interface:
@ -90,7 +90,7 @@
- assert:
that:
- "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)
junos_lldp_interface:

@ -17,7 +17,7 @@
- assert:
that:
- "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)
net_lldp_interface:
@ -40,7 +40,7 @@
- assert:
that:
- "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
net_lldp_interface:
@ -52,7 +52,7 @@
- assert:
that:
- "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
net_lldp_interface:
@ -64,7 +64,7 @@
- assert:
that:
- "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)
net_lldp_interface:

Loading…
Cancel
Save