Adapt tests for change in NETCONF 3.x branch
for Sulfur release stream.
Starting with Sulfur release we use 4334 port
for NETCONF call-home SSH instead of 6666.
For simplicity configure all docker placeholders
(SSH + TLS) from NetconfCallHome.robot file.
JIRA: NETCONF-846
Change-Id: If4e95c26adae57425005859578a69f468d545373
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
SSHLibrary.Put File ${CURDIR}/../variables/netconf/callhome/docker-compose.yaml .
SSHLibrary.Put File ${CURDIR}/../variables/netconf/callhome/init_configuration.sh .
SSHLibrary.Execute_Command sed -i -e 's/ODL_SYSTEM_IP/${ODL_SYSTEM_IP}/g' docker-compose.yaml
+ ${netconf_cl_ssh_port} Set_Variable_If_At_Least_Sulfur 4334 6666
+ SSHLibrary.Execute_Command sed -i -e 's/NETCONF_CH_SSH/${netconf_cl_ssh_port}/g' docker-compose.yaml
+ SSHLibrary.Execute_Command sed -i -e 's/NETCONF_CH_TLS/4335/g' docker-compose.yaml
${netconf_mount_expected_values} Create list ${substring1} ${substring2} ${substring3}
Set Suite Variable ${netconf_mount_expected_values}
Set Suite Variable ${CREATE_SSH_DEVICE_REQ_V1} ${CURDIR}/../variables/netconf/callhome/json/apiv1/create_device.json
exec netopeer2-server -d -v3"
environment:
- CALL_HOME_SERVER_IP=ODL_SYSTEM_IP
- - CALL_HOME_SSH_PORT=6666
- - CALL_HOME_TLS_PORT=4335
+ - CALL_HOME_SSH_PORT=NETCONF_CH_SSH
+ - CALL_HOME_TLS_PORT=NETCONF_CH_TLS
volumes:
- ./configuration-files:/root/configuration-files
- ./init_configuration.sh:/root/init_configuration.sh