|
|
@ -126,17 +126,10 @@
|
|
|
|
provider: "{{ netconf }}"
|
|
|
|
provider: "{{ netconf }}"
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
|
- name: Get running configuration
|
|
|
|
|
|
|
|
junos_rpc:
|
|
|
|
|
|
|
|
rpc: get-configuration
|
|
|
|
|
|
|
|
provider: "{{ netconf }}"
|
|
|
|
|
|
|
|
register: config
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "result.changed == true"
|
|
|
|
- "result.changed == true"
|
|
|
|
- "'<disable/>' in config.xml"
|
|
|
|
- result.diff.prepared | search("\+ *disable")
|
|
|
|
- "'+ disable;' in result.diff.prepared"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Enable linkagg interface
|
|
|
|
- name: Enable linkagg interface
|
|
|
|
junos_linkagg:
|
|
|
|
junos_linkagg:
|
|
|
@ -145,16 +138,10 @@
|
|
|
|
provider: "{{ netconf }}"
|
|
|
|
provider: "{{ netconf }}"
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
|
- name: Get running configuration
|
|
|
|
|
|
|
|
junos_rpc:
|
|
|
|
|
|
|
|
rpc: get-configuration
|
|
|
|
|
|
|
|
provider: "{{ netconf }}"
|
|
|
|
|
|
|
|
register: config
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "result.changed == true"
|
|
|
|
- "result.changed == true"
|
|
|
|
- "'<disable/>' not in config.xml"
|
|
|
|
- result.diff.prepared | search("\- *disable")
|
|
|
|
|
|
|
|
|
|
|
|
- name: Deactivate linkagg
|
|
|
|
- name: Deactivate linkagg
|
|
|
|
junos_linkagg:
|
|
|
|
junos_linkagg:
|
|
|
|