X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FOVSDB.robot;h=a1549c172825edbbc77919456cf3af4a6a286da1;hb=e02ae1a6a3ba18cd88d245a3f6d9da005e21cc98;hp=60bbfce40653e3d12bb78caa1add557943e25c92;hpb=92b44c4b35eb9f7490338bc5a3da7e510a4106b8;p=integration%2Ftest.git diff --git a/csit/libraries/OVSDB.robot b/csit/libraries/OVSDB.robot index 60bbfce406..a1549c1728 100644 --- a/csit/libraries/OVSDB.robot +++ b/csit/libraries/OVSDB.robot @@ -378,7 +378,7 @@ Get Bridge Data [Documentation] This keyword returns first bridge name and UUID from list of bridges. ${result} = SSHLibrary.Execute Command sudo ovs-vsctl show ${uuid} = String.Get Line ${result} 0 - ${line} ${bridge_name} Builtin.Should Match Regexp ${result} Bridge "(\\w+)" + ${line} ${bridge_name} Builtin.Should Match Regexp ${result} Bridge ([\\w-]+) [Return] ${uuid} ${bridge_name} Delete OVS Controller @@ -485,3 +485,18 @@ Verify Vni Packet Count After Traffic BuiltIn.Should Be True ${diff_count_ingress_port1} >= ${DEFAULT_PING_COUNT} BuiltIn.Should Be True ${diff_count_egress_port2} >= ${DEFAULT_PING_COUNT} BuiltIn.Should Be True ${diff_count_ingress_port2} >= ${DEFAULT_PING_COUNT} + +Get Flow Entries On Node + [Arguments] ${conn_id} ${switch}=${INTEGRATION_BRIDGE} + [Documentation] Return flow entries on the given Node. + SSHLibrary.Switch Connection ${conn_id} + ${output} = Utils.Write Commands Until Expected Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows ${switch} ${DEFAULT_LINUX_PROMPT_STRICT} + BuiltIn.Log ${output} + [Return] ${output} + +Verify Ovsdb State + [Arguments] ${dpn_ip} ${state}=ACTIVE + [Documentation] Verify ovsdb state for the given DPN + ${output} = Utils.Run Command On Remote System And Log ${dpn_ip} sudo ovsdb-client dump -f list Open_vSwitch Controller | grep state + BuiltIn.Log ${output} + BuiltIn.Should Contain ${output} state=${state}