|
|
@ -12,7 +12,7 @@
|
|
|
|
- name: Change port
|
|
|
|
- name: Change port
|
|
|
|
junos_netconf:
|
|
|
|
junos_netconf:
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
netconf_port: 8080
|
|
|
|
netconf_port: 8022
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
@ -22,19 +22,19 @@
|
|
|
|
- name: idempotent tests
|
|
|
|
- name: idempotent tests
|
|
|
|
junos_netconf:
|
|
|
|
junos_netconf:
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
netconf_port: 8080
|
|
|
|
netconf_port: 8022
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "result.changed == false"
|
|
|
|
- "result.changed == false"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure we can communicate over 8080
|
|
|
|
- name: Ensure we can communicate over 8022
|
|
|
|
junos_command:
|
|
|
|
junos_command:
|
|
|
|
rpcs:
|
|
|
|
rpcs:
|
|
|
|
- get-software-information
|
|
|
|
- get-software-information
|
|
|
|
provider: "{{ netconf }}"
|
|
|
|
provider: "{{ netconf }}"
|
|
|
|
port: 8080
|
|
|
|
port: 8022
|
|
|
|
|
|
|
|
|
|
|
|
# This protects against the port override above not being honoured and a bug setting the port
|
|
|
|
# This protects against the port override above not being honoured and a bug setting the port
|
|
|
|
- name: Ensure we can NOT communicate over default port
|
|
|
|
- name: Ensure we can NOT communicate over default port
|
|
|
|