[Arguments] ${node}
[Documentation] A GET on the /node/${node} API is made and specific flow stat
... strings are checked for existence.
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/node/${node}
+ ${resp} RequestsLibrary.Get session ${OPERATIONAL_NODES_API}/node/${node}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} flow-capable-node-connector-statistics
Should Contain ${resp.content} flow-table-statistics
[Documentation] A GET on the /port API is made and the specified port ${count} is
... verified. A more generic Keyword "Check For Specific Number Of Elements At URI"
... also does this work and further consolidation should be done.
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}/port
+ ${resp} RequestsLibrary.Get session ${OPERATIONAL_NODES_API}/${CONTAINER}/port
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain X Times ${resp.content} ${node} ${count}
: FOR ${i} IN @{elements}
\ Should Not Contain ${resp.content} ${i}
+Clean Mininet System
+ [Arguments] ${mininet_system}=${MININET}
+ Run Command On Remote System ${mininet_system} sudo mn -c
+ Run Command On Remote System ${mininet_system} sudo ps -elf | egrep 'usr/local/bin/mn' | egrep python | awk '{print "sudo kill -9",$4}' | sh
+
Extract Value From Content
[Arguments] ${content} ${index} ${strip}=nostrip
[Documentation] Will take the given response content and return the value at the given index as a string