${DEVICE_NAME_BASE} netconf-scaling-device
${TESTTOOL_BOOT_TIMEOUT} 60s
${ENABLE_NETCONF_TEST_TIMEOUT} ${ENABLE_GLOBAL_TEST_DEADLINES}
+${SSE_CFG_FILE} ${WORKSPACE}/${BUNDLEFOLDER}/etc/org.opendaylight.restconf.nb.rfc8040.cfg
*** Keywords ***
Setup_NetconfKeywords
${deadline_Date}= DateTime.Add_Time_To_Date ${current_Date} ${timeout}
BuiltIn.Set_Suite_Variable ${current_port} ${BASE_NETCONF_DEVICE_PORT}
BuiltIn.Repeat_Keyword ${count} times NetconfKeywords__Perform_Operation_With_Checking_On_Next_Device ${operation} ${deadline_Date} log_response=${log_response}
+
+Disable SSE On Controller
+ [Arguments] ${controller_ip}
+ [Documentation] Sets the config for using SSE (Server Side Events) to false. Note that
+ ... this keyword only changes the config. A controller restart is needed for the config to
+ ... to take effect.
+ SSHLibrary.Open Connection ${controller_ip}
+ Login With Public Key ${ODL_SYSTEM_USER} ${USER_HOME}/.ssh/${SSH_KEY} any
+ ${cmd}= Set Variable echo "use-sse=false" > ${SSE_CFG_FILE}
+ SSHLibrary.Execute Command ${cmd}
+ SSHLibrary.Close Connection
+
+Enable SSE On Controller
+ [Arguments] ${controller_ip}
+ [Documentation] Sets the config for using SSE (Server Side Events) to true. Note that
+ ... this keyword only changes the config. A controller restart is needed for the config to
+ ... to take effect.
+ SSHLibrary.Open Connection ${controller_ip}
+ Login With Public Key ${ODL_SYSTEM_USER} ${USER_HOME}/.ssh/${SSH_KEY} any
+ ${cmd}= Set Variable echo "use-sse=true" > ${SSE_CFG_FILE}
+ SSHLibrary.Execute Command ${cmd}
+ SSHLibrary.Close Connection
Library RequestsLibrary
Library SSHLibrary timeout=10s
Library XML
-Resource ${CURDIR}/../../../variables/Variables.robot
+Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/FailFast.robot
Resource ${CURDIR}/../../../libraries/KarafKeywords.robot
+Resource ${CURDIR}/../../../libraries/NetconfKeywords.robot
Resource ${CURDIR}/../../../libraries/Restconf.robot
Resource ${CURDIR}/../../../libraries/SetupUtils.robot
Resource ${CURDIR}/../../../libraries/SSHKeywords.robot
Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
Resource ${CURDIR}/../../../libraries/WaitForFailure.robot
+Resource ${CURDIR}/../../../variables/Variables.robot
*** Variables ***
${TEMPLATE_FOLDER} ${CURDIR}/templates
[Documentation] SSH-login to mininet machine, create HTTP session,
... prepare directories for responses, put Python tool to mininet machine, setup imported resources.
SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ Disable SSE On Controller ${CONTROLLER}
+ ClusterManagement.Stop_Members_From_List_Or_All
+ ClusterManagement.Start_Members_From_List_Or_All
+ KarafKeywords.Open_Controller_Karaf_Console_On_Background
TemplatedRequests.Create_Default_Session
SSHLibrary.Set_Default_Configuration prompt=${TOOLS_SYSTEM_PROMPT}
SSHLibrary.Open_Connection ${TOOLS_SYSTEM_IP} alias=receiver