fix for 73635 and 73184 77/74477/3
authorSrinivas Rachakonda <srinivas.rachakonda@gmail.com>
Wed, 25 Jul 2018 22:09:58 +0000 (03:39 +0530)
committerSrinivas Rachakonda <srinivas.rachakonda@gmail.com>
Wed, 25 Jul 2018 22:45:43 +0000 (04:15 +0530)
Change-Id: Icf81d08efc556bb7325650ea5d6ddf905010fa94
Signed-off-by: Srinivas Rachakonda <srinivas.rachakonda@gmail.com>
csit/libraries/OVSDB.robot

index f474bff2895c0a381c280d46d2815dc914fac7ef..c05d86b9a3bab122263c68e442f3b57cede1bb46 100644 (file)
@@ -470,6 +470,12 @@ Verify Vni Segmentation Id and Tunnel Id
     ...    ELSE    BuiltIn.Set Variable    ping6 -c ${DEFAULT_PING_COUNT} ${vm2_ip}
     ${output} =    OpenStackOperations.Execute Command on VM Instance    ${net1}    ${vm1_ip}    ${ping_cmd}
     BuiltIn.Should Contain    ${output}    64 bytes
+    BuiltIn.Wait Until Keyword Succeeds    60s    5s    OVSDB.Verify Vni Packet Count After Traffic    ${before_count_egress_port1}    ${before_count_egress_port2}    ${before_count_ingress_port1}
+    ...    ${before_count_ingress_port2}
+
+Verify Vni Packet Count After Traffic
+    [Arguments]    ${before_count_egress_port1}    ${before_count_egress_port2}    ${before_count_ingress_port1}    ${before_count_ingress_port2}
+    [Documentation]    Verify the packet count after the traffic sent
     ${tun_id}    ${after_count_egress_port2} =    OVSDB.Get Tunnel Id And Packet Count    ${OS_CMP2_CONN_ID}    ${L3_TABLE}    direction=${EGRESS}    tun_id=${segmentation_id1}
     ...    dst_mac=${port_mac1}
     ${tun_id}    ${after_count_ingress_port2} =    OVSDB.Get Tunnel Id And Packet Count    ${OS_CMP2_CONN_ID}    ${INTERNAL_TUNNEL_TABLE}    direction=${INGRESS}    tun_id=${segmentation_id2}