- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/node/openflow:3
- Should Be Equal As Strings ${resp.status_code} 200
- Should Contain ${resp.content} openflow:3:1
- Should Contain ${resp.content} openflow:3:2
- Should Contain ${resp.content} openflow:3:3
+ @{list} Append To List ${SW_CAPABILITIES} ${SW_VENDOR} ${SW_IPADDRESS} ${SW_HARDWARE} openflow:3:1
+ ... openflow:3:2 openflow:3:3
+ Wait Until Keyword Succeeds 30s 2s Check For Elements At URI ${REST_CONTEXT}/node/openflow:3 ${list}
+
+Link Down
+ [Documentation] Take link s1-s2 down
+ Write link s1 s2 down
+ Read Until mininet>
+ @{list} Create List "link-down":true
+ Wait Until Keyword Succeeds 30s 2s Check For Elements At URI ${REST_CONTEXT}/node/openflow:1/node-connector/openflow:1:1 ${list}
+ Wait Until Keyword Succeeds 30s 2s Check For Elements At URI ${REST_CONTEXT}/node/openflow:2/node-connector/openflow:2:3 ${list}
+
+Link Up
+ [Documentation] Take link s1-s2 up
+ Write link s1 s2 up
+ Read Until mininet>
+ @{list} Create List "link-down":false
+ Wait Until Keyword Succeeds 30s 2s Check For Elements At URI ${REST_CONTEXT}/node/openflow:1/node-connector/openflow:1:1 ${list}
+ Wait Until Keyword Succeeds 30s 2s Check For Elements At URI ${REST_CONTEXT}/node/openflow:2/node-connector/openflow:2:3 ${list}
+
+Remove Port
+ [Documentation] Remove port s2-eth1
+ Write sh ovs-vsctl del-port s2 s2-eth1
+ Read Until mininet>
+ @{list} Create List openflow:2:1
+ Wait Until Keyword Succeeds 30s 2s Check For Elements Not At URI ${REST_CONTEXT} ${list}
+
+Add Port
+ [Documentation] Add port s2-eth1, new id 4
+ Write sh ovs-vsctl add-port s2 s2-eth1
+ Read Until mininet>
+ @{list} Create List openflow:2:4
+ Wait Until Keyword Succeeds 30s 2s Check For Elements At URI ${REST_CONTEXT} ${list}