[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
: 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
... taking care to log in with a public key and. The command given is written and the output returned. No test conditions
... are checked.
Log Attempting to execute ${cmd} on ${remote_system}
- ${conn_id}= Open Connection ${remote_system} prompt=${prompt} timeout=${prompt_timeout}
+ ${conn_id}= SSHLibrary.Open Connection ${remote_system} prompt=${prompt} timeout=${prompt_timeout}
Login With Public Key ${user} ${USER_HOME}/.ssh/id_rsa any
- Write ${cmd}
- ${output}= Read Until ${linux_prompt}
- Close Connection
+ SSHLibrary.Write ${cmd}
+ ${output}= SSHLibrary.Read Until ${linux_prompt}
+ SSHLibrary.Close Connection
[Return] ${output}
Verify File Exists On Remote System