Add testcase for Vswitch Hosting Subnet Route Restart 26/82526/2
authorJayaPr <jaya.priyadarshini@ericsson.com>
Mon, 17 Jun 2019 17:36:29 +0000 (23:06 +0530)
committerVenkatrangan Govindarajan <vgovindarajan@luminanetworks.com>
Tue, 18 Jun 2019 12:22:25 +0000 (12:22 +0000)
Change-Id: I85254e429c6e9038cbfae42849eb0e9e69af8bc2
Signed-off-by: JayaPr <jaya.priyadarshini@ericsson.com>
csit/libraries/OVSDB.robot
csit/suites/netvirt/subnet_routing/subnet_routing_and_multicast.robot

index c2963e621b07a568372addfd716ab6f1a0617d0f..a1549c172825edbbc77919456cf3af4a6a286da1 100644 (file)
@@ -493,3 +493,10 @@ Get Flow Entries On Node
     ${output} =    Utils.Write Commands Until Expected Prompt    sudo ovs-ofctl -O OpenFlow13 dump-flows ${switch}    ${DEFAULT_LINUX_PROMPT_STRICT}
     BuiltIn.Log    ${output}
     [Return]    ${output}
     ${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}
index 304240336f541c557263a6692b565ff7435a10d1..a55c8aeb9670dae446554d1492ffe68bb2c0d38c 100644 (file)
@@ -76,6 +76,13 @@ Verify The Subnet Route For Multiple Subnets On Multi VSwitch Topology When Qbgp
     BgpOperations.Restart BGP Processes On ODL    ${ODL_SYSTEM_IP}
     Verify Ping between Inter Intra And Enterprise host
 
     BgpOperations.Restart BGP Processes On ODL    ${ODL_SYSTEM_IP}
     Verify Ping between Inter Intra And Enterprise host
 
+Verify The Subnet Route When Vswitch Hosting Subnet Route Is Restarted On Single Vswitch Topology
+    [Documentation]    Restart single OVS node on which subnet route is configured and verify enterprise hosts reachability
+    OVSDB.Restart OVSDB    ${OS_COMPUTE_2_IP}
+    BuiltIn.Wait Until Keyword Succeeds    10s    20s    OVSDB.Verify Ovsdb State    ${OS_COMPUTE_2_IP}
+    VpnOperations.Verify Tunnel Status as UP
+    Verify Ping between Inter Intra And Enterprise host
+
 *** Keywords ***
 Suite Setup
     [Documentation]    Test Suite for Subnet_Routing_and_Multicast_Deployments.
 *** Keywords ***
 Suite Setup
     [Documentation]    Test Suite for Subnet_Routing_and_Multicast_Deployments.