Resource MininetKeywords.robot
Resource ../variables/Variables.robot
+*** Variables ***
+${log_level} ERROR
+
*** Keywords ***
Workflow Single Switch Multiple Hosts
[Arguments] ${hosts} ${sustain_time}=0
Return From Keyword If '${status}' == 'FAIL' ${status} Controller is dead ${host_discover_time}
${status} ${result} BuiltIn.Run Keyword And Ignore Error Utils.Verify Controller Has No Null Pointer Exceptions ${ODL_SYSTEM_IP}
Return From Keyword If '${status}' == 'FAIL' ${status} Controller has NPE ${host_discover_time}
+ ${status} ${result} BuiltIn.Run Keyword And Ignore Error Utils.Verify Controller Has No Runtime Exceptions ${ODL_SYSTEM_IP}
+ Return From Keyword If '${status}' == 'FAIL' ${status} Controller has RuntimeException ${topology_discover_time}
Log To Console Check number of hosts in topology is ${hosts}
${status} ${result} BuiltIn.Run Keyword And Ignore Error Wait Until Keyword Succeeds ${hosts} 2s FlowLib.Check Number Of Hosts
... ${hosts}
Workflow Setup
RequestsLibrary.Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
- BuiltIn.Wait Until Keyword Succeeds 3x 1s KarafKeywords.Issue Command On Karaf Console log:set ERROR
+ BuiltIn.Wait Until Keyword Succeeds 3x 1s KarafKeywords.Issue Command On Karaf Console log:set ${log_level}
Workflow Teardown
[Documentation] Cleanup when workflow is interrupt