X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fnetvirt%2Fsubnet_routing%2Fsubnet_routing_and_multicast.robot;h=7d3befff8363653cea734b27d1c978b4baaedfd3;hb=94651ca9711d8eb316721775561e815830bc6c7e;hp=10ae0c43a3060d46d516be4a7ea8fcf50c1679fc;hpb=f6b56193bcfc467f9873f5d2bf757e12f5db02df;p=integration%2Ftest.git 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 10ae0c43a3..7d3befff83 100644 --- a/csit/suites/netvirt/subnet_routing/subnet_routing_and_multicast.robot +++ b/csit/suites/netvirt/subnet_routing/subnet_routing_and_multicast.robot @@ -113,6 +113,21 @@ 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} + END + ${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} + END + 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. @@ -141,9 +156,10 @@ Create Setup Create Nova VMs Create Sub Interfaces And Verify Create L3VPN - : FOR ${network} IN @{NETWORKS} - \ ${network_id} = OpenStackOperations.Get Net Id ${network} - \ VpnOperations.Associate L3VPN To Network networkid=${network_id} vpnid=${VPN_INSTANCE_ID} + FOR ${network} IN @{NETWORKS} + ${network_id} = OpenStackOperations.Get Net Id ${network} + VpnOperations.Associate L3VPN To Network networkid=${network_id} vpnid=${VPN_INSTANCE_ID} + END Create BGP Config On ODL Create BGP Config On DCGW BuiltIn.Wait Until Keyword Succeeds 60s 10s VpnOperations.Verify Tunnel Status as UP @@ -156,15 +172,17 @@ Create Setup Create Neutron Networks [Documentation] Create required number of networks - : FOR ${net} IN @{NETWORKS} - \ OpenStackOperations.Create Network ${net} + FOR ${net} IN @{NETWORKS} + OpenStackOperations.Create Network ${net} + END BuiltIn.Wait Until Keyword Succeeds 3s 1s Utils.Check For Elements At URI ${NETWORK_URL} ${NETWORKS} Create Neutron Subnets [Arguments] ${num_of_network} ${additional_args}=${EMPTY} ${verbose}=TRUE [Documentation] Create required number of subnets for previously created networks - : FOR ${index} IN RANGE 0 ${num_of_network} - \ OpenStackOperations.Create SubNet @{NETWORKS}[${index}] @{SUBNETS}[${index}] @{SUBNET_CIDR}[${index}] + FOR ${index} IN RANGE 0 ${num_of_network} + OpenStackOperations.Create SubNet @{NETWORKS}[${index}] @{SUBNETS}[${index}] @{SUBNET_CIDR}[${index}] + END BuiltIn.Wait Until Keyword Succeeds 3s 1s Utils.Check For Elements At URI ${SUBNETWORK_URL} ${SUBNETS} Create Neutron Ports @@ -172,22 +190,26 @@ Create Neutron Ports ${allowed_address_pairs_args1} = BuiltIn.Set Variable --allowed-address ip-address=@{EXTRA_NW_SUBNET}[0] --allowed-address ip-address=@{EXTRA_NW_SUBNET}[1] ${allowed_address_pairs_args2} = BuiltIn.Set Variable --allowed-address ip-address=@{EXTRA_NW_SUBNET}[1] --allowed-address ip-address=@{EXTRA_NW_SUBNET}[2] ${allowed_address_pairs_args3} = BuiltIn.Set Variable --allowed-address ip-address=@{EXTRA_NW_SUBNET}[2] --allowed-address ip-address=@{EXTRA_NW_SUBNET}[0] - : FOR ${index} IN RANGE 0 ${NUM_OF_PORTS_PER_NETWORK} - \ OpenStackOperations.Create Port @{NETWORKS}[0] @{NET_1_PORTS}[${index}] sg=${SECURITY_GROUP} additional_args=${allowed_address_pairs_args1} - : FOR ${index} IN RANGE 0 ${NUM_OF_PORTS_PER_NETWORK} - \ OpenStackOperations.Create Port @{NETWORKS}[1] @{NET_2_PORTS}[${index}] sg=${SECURITY_GROUP} additional_args=${allowed_address_pairs_args2} - : FOR ${index} IN RANGE 0 ${NUM_OF_PORTS_PER_NETWORK} - \ OpenStackOperations.Create Port @{NETWORKS}[2] @{NET_3_PORTS}[${index}] sg=${SECURITY_GROUP} additional_args=${allowed_address_pairs_args3} + FOR ${index} IN RANGE 0 ${NUM_OF_PORTS_PER_NETWORK} + OpenStackOperations.Create Port @{NETWORKS}[0] @{NET_1_PORTS}[${index}] sg=${SECURITY_GROUP} additional_args=${allowed_address_pairs_args1} + END + FOR ${index} IN RANGE 0 ${NUM_OF_PORTS_PER_NETWORK} + OpenStackOperations.Create Port @{NETWORKS}[1] @{NET_2_PORTS}[${index}] sg=${SECURITY_GROUP} additional_args=${allowed_address_pairs_args2} + END + FOR ${index} IN RANGE 0 ${NUM_OF_PORTS_PER_NETWORK} + OpenStackOperations.Create Port @{NETWORKS}[2] @{NET_3_PORTS}[${index}] sg=${SECURITY_GROUP} additional_args=${allowed_address_pairs_args3} + END Create Nova VMs [Documentation] Create Vm instances on compute nodes - : FOR ${index} IN RANGE 0 2 - \ OpenStackOperations.Create Vm Instance With Port On Compute Node @{NET_1_PORTS}[${index}] @{NET_1_VMS}[${index}] ${OS_CMP1_HOSTNAME} sg=${SECURITY_GROUP} - \ OpenStackOperations.Create Vm Instance With Port On Compute Node @{NET_1_PORTS}[${index+2}] @{NET_1_VMS}[${index+2}] ${OS_CMP2_HOSTNAME} sg=${SECURITY_GROUP} - \ OpenStackOperations.Create Vm Instance With Port On Compute Node @{NET_2_PORTS}[${index}] @{NET_2_VMS}[${index}] ${OS_CMP1_HOSTNAME} sg=${SECURITY_GROUP} - \ OpenStackOperations.Create Vm Instance With Port On Compute Node @{NET_2_PORTS}[${index+2}] @{NET_2_VMS}[${index+2}] ${OS_CMP2_HOSTNAME} sg=${SECURITY_GROUP} - \ OpenStackOperations.Create Vm Instance With Port On Compute Node @{NET_3_PORTS}[${index}] @{NET_3_VMS}[${index}] ${OS_CMP1_HOSTNAME} sg=${SECURITY_GROUP} - \ OpenStackOperations.Create Vm Instance With Port On Compute Node @{NET_3_PORTS}[${index+2}] @{NET_3_VMS}[${index+2}] ${OS_CMP2_HOSTNAME} sg=${SECURITY_GROUP} + FOR ${index} IN RANGE 0 2 + OpenStackOperations.Create Vm Instance With Port On Compute Node @{NET_1_PORTS}[${index}] @{NET_1_VMS}[${index}] ${OS_CMP1_HOSTNAME} sg=${SECURITY_GROUP} + OpenStackOperations.Create Vm Instance With Port On Compute Node @{NET_1_PORTS}[${index+2}] @{NET_1_VMS}[${index+2}] ${OS_CMP2_HOSTNAME} sg=${SECURITY_GROUP} + OpenStackOperations.Create Vm Instance With Port On Compute Node @{NET_2_PORTS}[${index}] @{NET_2_VMS}[${index}] ${OS_CMP1_HOSTNAME} sg=${SECURITY_GROUP} + OpenStackOperations.Create Vm Instance With Port On Compute Node @{NET_2_PORTS}[${index+2}] @{NET_2_VMS}[${index+2}] ${OS_CMP2_HOSTNAME} sg=${SECURITY_GROUP} + OpenStackOperations.Create Vm Instance With Port On Compute Node @{NET_3_PORTS}[${index}] @{NET_3_VMS}[${index}] ${OS_CMP1_HOSTNAME} sg=${SECURITY_GROUP} + OpenStackOperations.Create Vm Instance With Port On Compute Node @{NET_3_PORTS}[${index+2}] @{NET_3_VMS}[${index+2}] ${OS_CMP2_HOSTNAME} sg=${SECURITY_GROUP} + END @{NET_1_VM_IPS} ${NET1_DHCP_IP} = OpenStackOperations.Get VM IPs @{NET_1_VMS} @{NET_2_VM_IPS} ${NET2_DHCP_IP} = OpenStackOperations.Get VM IPs @{NET_2_VMS} @{NET_3_VM_IPS} ${NET3_DHCP_IP} = OpenStackOperations.Get VM IPs @{NET_3_VMS}