*** Settings ***
-Documentation TODO
-Suite Setup Switch Qualification Suite Setup
-Suite Teardown Switch Qualification Suite Teardown
-Test Timeout 5m
-Library Collections
-Library OperatingSystem
-Library RequestsLibrary
-Library ../../../libraries/Common.py
-Library ../../../libraries/SwitchClasses/${SWITCH_CLASS}.py
-Variables ../../../variables/Variables.py
-Resource ../../../libraries/SwitchUtils.robot
-Resource ../../../libraries/Utils.robot
-Resource ../../../variables/openflowplugin/Variables.robot
+Documentation TODO
+
+Library Collections
+Library OperatingSystem
+Library RequestsLibrary
+Library ../../../libraries/Common.py
+Library ../../../libraries/SwitchClasses/${SWITCH_CLASS}.py
+Variables ../../../variables/Variables.py
+Resource ../../../libraries/SwitchUtils.robot
+Resource ../../../libraries/Utils.robot
+Resource ../../../variables/openflowplugin/Variables.robot
+
+Suite Setup Switch Qualification Suite Setup
+Suite Teardown Switch Qualification Suite Teardown
+Test Timeout 5m
+
*** Variables ***
-${SWITCH_CLASS} Ovs
-${SWITCH_IP} ${TOOLS_SYSTEM_IP}
+${SWITCH_CLASS} Ovs
+${SWITCH_IP} ${TOOLS_SYSTEM_IP}
${SWITCH_PROMPT} ${TOOLS_SYSTEM_PROMPT}
${ODL_SYSTEM_IP} null
-${REST_CONTEXT} ${RFC8040_NODES_API}
+${REST_CONTEXT} ${RFC8040_NODES_API}
+
*** Test Cases ***
OF1.3 Connection Between Switch and Controller
##- proper default flow rules
##- ???
+
*** Keywords ***
Switch Qualification Suite Setup
${test_switch}= Get Switch ${SWITCH_CLASS}
Call Method ${test_switch} set_mgmt_ip ${SWITCH_IP}
Call Method ${test_switch} set_controller_ip ${ODL_SYSTEM_IP}
Call Method ${test_switch} set_mgmt_prompt ${SWITCH_PROMPT}
- Log MAKE: ${test_switch.make}\nMODEL: ${test_switch.model}\nIP: ${test_switch.mgmt_ip}\nPROMPT: ${test_switch.mgmt_prompt}\nCONTROLLER_IP: ${test_switch.of_controller_ip}\nMGMT_PROTOCOL: ${test_switch.mgmt_protocol}
+ Log
+ ... MAKE: ${test_switch.make}\nMODEL: ${test_switch.model}\nIP: ${test_switch.mgmt_ip}\nPROMPT: ${test_switch.mgmt_prompt}\nCONTROLLER_IP: ${test_switch.of_controller_ip}\nMGMT_PROTOCOL: ${test_switch.mgmt_protocol}
Ping ${test_switch.mgmt_ip}
Initialize Switch ${test_switch}
Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}