From e02ae1a6a3ba18cd88d245a3f6d9da005e21cc98 Mon Sep 17 00:00:00 2001 From: JayaPr Date: Mon, 17 Jun 2019 23:06:29 +0530 Subject: [PATCH] Add testcase for Vswitch Hosting Subnet Route Restart Change-Id: I85254e429c6e9038cbfae42849eb0e9e69af8bc2 Signed-off-by: JayaPr --- csit/libraries/OVSDB.robot | 7 +++++++ .../subnet_routing/subnet_routing_and_multicast.robot | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/csit/libraries/OVSDB.robot b/csit/libraries/OVSDB.robot index c2963e621b..a1549c1728 100644 --- a/csit/libraries/OVSDB.robot +++ b/csit/libraries/OVSDB.robot @@ -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} + +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} diff --git a/csit/suites/netvirt/subnet_routing/subnet_routing_and_multicast.robot b/csit/suites/netvirt/subnet_routing/subnet_routing_and_multicast.robot index 304240336f..a55c8aeb96 100644 --- a/csit/suites/netvirt/subnet_routing/subnet_routing_and_multicast.robot +++ b/csit/suites/netvirt/subnet_routing/subnet_routing_and_multicast.robot @@ -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 +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. -- 2.36.6