Add testcase to Verify The Subnet Route When The Network Is Removed From The Vpn 65/84365/3
authorJayaPr <jaya.priyadarshini@ericsson.com>
Fri, 13 Sep 2019 14:15:20 +0000 (19:45 +0530)
committerVenkatrangan Govindarajan <vgovindarajan@luminanetworks.com>
Tue, 17 Sep 2019 06:01:51 +0000 (06:01 +0000)
Signed-off-by: JayaPr <jaya.priyadarshini@ericsson.com>
Change-Id: I958ff933c476f0fac7dedd642227b56c9df409e9

csit/suites/netvirt/subnet_routing/subnet_routing_and_multicast.robot

index 10ae0c43a3060d46d516be4a7ea8fcf50c1679fc..eded6a40abfafb8c2538ded14fa9f5d4b27081c3 100644 (file)
@@ -113,6 +113,19 @@ Verify The Subnet Route For Multiple Subnets On Multi Vswitch Topology
     BuiltIn.Should Contain    ${output}    64 bytes
     Verify Ping between Inter Intra And Enterprise host
 
+Verify The Subnet Route When The Network Is Removed From The Vpn
+    [Documentation]    Dissociate vpn from the network and verify the subnet route
+    : FOR    ${network}    IN    @{NETWORKS}
+    \    ${network_id} =    OpenStackOperations.Get Net Id    ${network}
+    \    VpnOperations.Dissociate L3VPN From Networks    networkid=${network_id}    vpnid=${VPN_INSTANCE_ID}
+    ${vm_ip_list} =    BuiltIn.Create List    @{NET_1_VM_IPS}    @{NET_2_VM_IPS}    @{NET_3_VM_IPS}
+    Utils.Check For Elements Not At URI    ${FIB_ENTRY_URL}    ${vm_ip_list}
+    : FOR    ${network}    IN    @{NETWORKS}
+    \    ${network_id} =    OpenStackOperations.Get Net Id    ${network}
+    \    VpnOperations.Associate L3VPN To Network    networkid=${network_id}    vpnid=${VPN_INSTANCE_ID}
+    Utils.Check For Elements At URI    ${FIB_ENTRY_URL}    ${vm_ip_list}
+    Verify Ping between Inter Intra And Enterprise host
+
 *** Keywords ***
 Suite Setup
     [Documentation]    Test Suite for Subnet_Routing_and_Multicast_Deployments.