- ${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}
+ [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}