Use call-home SSH port 4334 76/98876/9
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 7 Dec 2021 19:46:52 +0000 (20:46 +0100)
committerSangwook Ha <sangwook.ha@verizon.com>
Sun, 3 Apr 2022 18:53:40 +0000 (18:53 +0000)
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>
csit/libraries/NetconfCallHome.robot
csit/variables/netconf/callhome/docker-compose.yaml

index d18568d70b84f4d292f8dc32a28fcbea064ebd3e..48233be4f0264b41953969d0768b301d68b036a6 100644 (file)
@@ -185,6 +185,9 @@ Suite Setup
     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
index 00e6c97e9b8a348bd43a3e4fabd6321d1e680cec..47c7ca6fa99df0bfc1f638a22b0be4138e6c96dc 100644 (file)
@@ -6,8 +6,8 @@ netopeer2-server:
       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