Fix netconf port variables 92/35192/2
authorJozef Behran <jbehran@cisco.com>
Mon, 22 Feb 2016 13:38:07 +0000 (14:38 +0100)
committerVratko Polák <vrpolak@cisco.com>
Mon, 22 Feb 2016 14:42:28 +0000 (14:42 +0000)
There are two netconf ports in ODL, one is MDSAL and the
other one is the config subsystem. However there was only
one Netconf port variable, confusingly named ODL_NETCONF_PORT
which pointed to the MDSAL port. Fix that by putting the
name of the subsystem behind the port into the name of the
variable and also create the other variable which for some
reason was still missing.

Change-Id: I526f1a314a7a3b1414f333f9b161f146e5e88d87
Signed-off-by: Jozef Behran <jbehran@cisco.com>
csit/suites/netconf/MDSAL/northbound.robot
csit/variables/Variables.py

index e3dc825470ec2b08a269a29cd4b4d2aa40cc04b7..df30cb6ea2337855eed2b6e215c6707f703bc9c2 100644 (file)
@@ -306,7 +306,7 @@ Get_Data
     [Return]    ${data}
 
 Create_ODL_Netconf_Connection
-    [Arguments]    ${host}=${CONTROLLER}    ${port}=${ODL_NETCONF_PORT}    ${user}=${ODL_NETCONF_USER}    ${password}=${ODL_NETCONF_PASSWORD}
+    [Arguments]    ${host}=${CONTROLLER}    ${port}=${ODL_NETCONF_MDSAL_PORT}    ${user}=${ODL_NETCONF_USER}    ${password}=${ODL_NETCONF_PASSWORD}
     [Documentation]    Open a netconf connecion to the given machine.
     # The "-s netconf" flag (see the "SSHLibrary.Write" line below)    is not
     # supported by SSHLibrary, therefore we need to use this elaborate and
index 5ccea6037eae59e548717f4c8c31d312011418ca..f33a790dd93b7cf61b763f59b59f014c85d45577 100644 (file)
@@ -48,7 +48,8 @@ ODL_RESTCONF_USER = 'admin'
 ODL_RESTCONF_PASSWORD = 'admin'
 
 # Netconf variables
-ODL_NETCONF_PORT = '2830'
+ODL_NETCONF_CONFIG_PORT = '1830'
+ODL_NETCONF_MDSAL_PORT = '2830'
 ODL_NETCONF_USER = 'admin'
 ODL_NETCONF_PASSWORD = 'admin'
 ODL_NETCONF_PROMPT = ']]>]]>'