Library RequestsLibrary
Library SSHLibrary
Library XML
+Resource CompareStream.robot
Resource KarafKeywords.robot
+Resource SetupUtils.robot
Resource Utils.robot
*** Variables ***
${CONFIGURATION_XML} ${CURDIR}/../suites/topoprocessing/configuration.xml
${OPERATIONAL_XML} ${CURDIR}/../suites/topoprocessing/operational.xml
-${REMOTE_FILE} ${WORKSPACE}/${BUNDLEFOLDER}/etc/opendaylight/karaf/80-topoprocessing-config.xml
+${CONFIGURATION_CFG} ${CURDIR}/../suites/topoprocessing/configuration.cfg
+${OPERATIONAL_CFG} ${CURDIR}/../suites/topoprocessing/operational.cfg
+${REMOTE_XML_FILE} ${WORKSPACE}/${BUNDLEFOLDER}/etc/opendaylight/karaf/80-topoprocessing-config.xml
+${REMOTE_CFG_FILE} ${WORKSPACE}/${BUNDLEFOLDER}/etc/org.opendaylight.topoprocessing.cfg
${OUTPUT_TOPO_NAME} topo:1
${OVERLAY_TOPO_URL} ${TOPOLOGY_URL}/${OUTPUT_TOPO_NAME}
Setup Environment
[Documentation] Setup karaf enviroment for following tests
Log ---- Setup Environment ----
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown
Open Connection ${ODL_SYSTEM_IP}
Flexible Controller Login
- Put File ${CONFIGURATION_XML} ${REMOTE_FILE}
+ Put File ${CONFIGURATION_CFG} ${REMOTE_CFG_FILE}
Close Connection
Wait Until Keyword Succeeds 2x 2s Issue Command On Karaf Console log:set DEBUG org.opendaylight.topoprocessing
- Install a Feature odl-restconf-noauth timeout=30
Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${SEND_ACCEPT_XML_HEADERS}
- Install Features odl-openflowplugin-nsf-model odl-topoprocessing-framework odl-topoprocessing-network-topology odl-topoprocessing-inventory odl-mdsal-models odl-ovsdb-southbound-impl
Prepare New Feature Installation
Insert Underlay topologies
Install Features
[Arguments] ${features} ${timeout}=180
[Documentation] Install features according to tested distribution
- Run Keyword If '${ODL_STREAM}' == 'beryllium' Install Features for Beryllium Distribution ${features} ${timeout}
- ... ELSE Install Features for Other Distributions ${features} ${timeout}
+ Install Features for Other Distributions ${features} ${timeout}
Install Features for Beryllium Distribution
[Arguments] ${features} ${timeout}
Log ---- Clean Environment ----
Open Connection ${ODL_SYSTEM_IP}
Flexible Controller Login
- Put File ${OPERATIONAL_XML} ${REMOTE_FILE}
+ Put File ${OPERATIONAL_CFG} ${REMOTE_CFG_FILE}
Close Connection
Delete All Sessions