+ ${output}= Utils.Write Commands Until Expected Prompt ${cmd} ${DEFAULT_LINUX_PROMPT_STRICT}
+ @{list}= String.Split String ${output}
+ RETURN ${list[0]}
+
+Get Packet Count From Table
+ [Documentation] Return packet count for the specific table no.
+ [Arguments] ${system_ip} ${br_name} ${table_no} ${addtioanal_args}=${EMPTY}
+ ${flow_output}= Utils.Run Command On Remote System
+ ... ${system_ip}
+ ... sudo ovs-ofctl dump-flows -O Openflow13 ${br_name} | grep ${table_no} ${addtioanal_args}
+ @{output}= String.Split String ${flow_output} \r\n
+ ${flow}= Collections.Get From List ${output} 0
+ ${packetcountlist}= String.Get Regexp Matches ${flow} n_packets=([0-9]+), 1
+ ${packetcount}= Collections.Get From List ${packetcountlist} 0
+ RETURN ${packetcount}
+
+Get Packet Count In Table For IP
+ [Documentation] Capture packetcount for IP in Table
+ [Arguments] ${os_compute_ip} ${table_no} ${ip_address} ${additional_args}=${EMPTY}
+ ${cmd}= BuiltIn.Set Variable
+ ... sudo ovs-ofctl dump-flows br-int -OOpenFlow13 | grep table=${table_no} | grep ${ip_address} ${additional_args}
+ ${output}= Utils.Run Command On Remote System And Log ${os_compute_ip} ${cmd}
+ @{output_list}= String.Split String ${output} \r\n
+ ${flow}= Collections.Get From List ${output_list} 0
+ ${packetcount_list}= String.Get Regexp Matches ${flow} n_packets=([0-9]+) 1
+ ${count}= Collections.Get From List ${packetcount_list} 0
+ RETURN ${count}
+
+Verify Ovs Version Greater Than Or Equal To
+ [Documentation] Get ovs version and verify greater than required version
+ [Arguments] ${ovs_version} @{nodes}
+ FOR ${ip} IN @{nodes}
+ ${output}= Utils.Run Command On Remote System ${ip} ${SHOW_OVS_VERSION}
+ ${version}= String.Get Regexp Matches ${output} \[0-9].\[0-9]
+ ${result}= BuiltIn.Convert To Number ${version[0]}
+ BuiltIn.Should Be True ${result} >= ${ovs_version}
+ END
+
+Get OVS Local Ip
+ [Documentation] Get local ip of compute node ovsdb
+ [Arguments] ${ip}
+ ${cmd_output}= Utils.Run Command On Remote System ${ip} ${GET_LOCAL_IP}
+ ${localip}= String.Get Regexp Matches ${cmd_output} (\[0-9]+\.\[0-9]+\.\[0-9]+\.\[0-9]+)
+ RETURN ${localip}[0]