Library RequestsLibrary
Library SSHLibrary
Resource ../../../libraries/Utils.robot
+Resource ../../../libraries/FlowLib.robot
Variables ../../../variables/ofplugin/RpcVariables.py
*** Variables ***
-${send_update_table_url} /restconf/operations/sal-table:update-table
+${send_update_table_url} /rests/operations/sal-table:update-table
${start} sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo tree,1 --switch user
*** Test Cases ***
*** Keywords ***
Initialization Phase
[Documentation] Starts mininet and verify if topology is in operational ds
- Start Suite
+ Start Mininet
Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
- Wait Until Keyword Succeeds 60s 1s Are Switches Connected Topo
+ Wait Until Keyword Succeeds 90s 1s FlowLib.Check Switches In Topology 1
Final Phase
[Documentation] Stops mininet
- Stop Suite
+ Stop Mininet
Delete All Sessions
-
-Are Switches Connected Topo
- [Documentation] Checks wheather switches are connected to controller
- ${resp}= RequestsLibrary.Get Request session ${OPERATIONAL_TOPO_API}/topology/flow:1 headers=${ACCEPT_XML}
- Log ${resp.content}
- ${count}= Get Element Count ${resp.content} xpath=node
- Should Be Equal As Numbers ${count} 1