${expect_ping_to_work} = Set Variable If "skip_if_controller" in @{TEST_TAGS} False True
${dst_ip} = BuiltIn.Create List ${EXTERNAL_PNF}
OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET1_FIP_VM_IPS}[1] ${dst_ip} ttl=1 ping_should_succeed=${expect_ping_to_work}
-
-Delete Vm Instances
- [Documentation] Delete Vm instances using instance names.
- : FOR ${vm} IN @{NET1_FIP_VMS}
- \ OpenStackOperations.Delete Vm Instance ${vm}
- : FOR ${vm} IN @{SNAT_VMS}
- \ OpenStackOperations.Delete Vm Instance ${vm}
-
-Delete Router Interfaces
- [Documentation] Remove Interface to the subnets.
- : FOR ${router} ${interface} IN ZIP ${ROUTERS} ${SUBNETS}
- \ OpenStackOperations.Remove Interface ${router} ${interface}
-
-Delete Routers
- [Documentation] Delete Router and Interface to the subnets.
- : FOR ${router} IN @{ROUTERS}
- \ OpenStackOperations.Delete Router ${router}
-
-Verify Deleted Router
- [Documentation] Check deleted router using northbound rest call
- ${data} Utils.Get Data From URI 1 ${NEUTRON_ROUTERS_API}
- BuiltIn.Log ${data}
- : FOR ${router} IN @{ROUTERS}
- \ BuiltIn.Should Not Contain ${data} ${ROUTER}
-
-Delete Networks
- [Documentation] Delete Networks with neutron request.
- : FOR ${network} IN @{NETWORKS}
- \ OpenStackOperations.Delete Network ${network}
- OpenStackOperations.Delete Network ${EXTERNAL_NET_NAME}
-
-Delete Security Group
- [Documentation] Delete security groups with neutron request
- OpenStackOperations.Delete SecurityGroup ${SECURITY_GROUP}
-
-Verify Flows Cleanup
- [Documentation] Verify that flows have been cleaned up properly after removing all neutron configurations
- DataModels.Verify Flows Are Cleaned Up On All OpenStack Nodes
No Ping For Deleted Vm
[Documentation] Check non reachability of deleted vm instances by pinging to them.
OpenStackOperations.Ping From DHCP Should Not Succeed @{NETWORKS}[0] @{NET_1_VM_IPS}[0]
-
-Delete Vm Instances In net_1
- [Documentation] Delete Vm instances using instance names in net_1.
- : FOR ${vm} IN @{NET_1_VMS}
- \ OpenStackOperations.Delete Vm Instance ${vm}
-
-Delete Vm Instances In net_2
- [Documentation] Delete Vm instances using instance names in net_2.
- : FOR ${vm} IN @{NET_2_VMS}
- \ OpenStackOperations.Delete Vm Instance ${vm}
-
-Delete Sub Network In net_1
- [Documentation] Delete Sub Net for the Networks with neutron request.
- OpenStackOperations.Delete SubNet @{SUBNETS}[0]
-
-Delete Sub Network In net_2
- [Documentation] Delete Sub Net for the Networks with neutron request.
- OpenStackOperations.Delete SubNet @{SUBNETS}[1]
-
-Delete Networks
- [Documentation] Delete Networks with neutron request.
- : FOR ${networks} IN @{NETWORKS}
- \ OpenStackOperations.Delete Network ${networks}
-
-Delete Security Group
- [Documentation] Delete security group with neutron request
- OpenStackOperations.Delete SecurityGroup ${SECURITY_GROUP}
-
-Verify Flows Cleanup
- [Documentation] Verify that flows have been cleaned up properly after removing all neutron configurations
- ${feature_check_status}= Run Keyword And Return Status Verify Feature Is Installed odl-vtn-manager-neutron
- BuiltIn.Run Keyword If '${feature_check_status}' != 'True' DataModels.Verify Flows Are Cleaned Up On All OpenStack Nodes
[Documentation] Check reachability of vm instance on a different network with one vlan vm in source and destination.
${dst_list} = BuiltIn.Create List @{NET_4_L3_VM_IPS}
OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[4] @{NET_5_L3_VM_IPS}[0] ${dst_list}
-
-Delete Vm Instances In net_4
- [Documentation] Delete Vm instances using instance names in net_2.
- : FOR ${vm} IN @{NET_4_VMS}
- \ OpenStackOperations.Delete Vm Instance ${vm}
-
-Delete Vm Instances In net_5
- [Documentation] Delete Vm instances using instance names in net_3.
- : FOR ${vm} IN @{NET_5_VMS}
- \ OpenStackOperations.Delete Vm Instance ${vm}
-
-Delete Router1 Interfaces
- [Documentation] Remove Interface to the subnets.
- : FOR ${interface} IN @{SUBNETS_1}
- \ OpenStackOperations.Remove Interface @{ROUTER}[0] ${interface}
-
-Delete Router1
- [Documentation] Delete Router and Interface to the subnets.
- OpenStackOperations.Delete Router @{ROUTER}[0]
-
-Delete Router2 Interfaces
- [Documentation] Remove Interface to the subnets.
- : FOR ${interface} IN @{SUBNETS_2}
- \ OpenStackOperations.Remove Interface @{ROUTER}[1] ${interface}
-
-Delete Router2
- [Documentation] Delete Router and Interface to the subnets.
- OpenStackOperations.Delete Router @{ROUTER}[1]
-
-Delete Sub Network In net_1
- [Documentation] Delete Sub Net for the Network with neutron request.
- OpenStackOperations.Delete SubNet l3_sub_1
-
-Delete Sub Network In net_2
- [Documentation] Delete Sub Net for the Network with neutron request.
- OpenStackOperations.Delete SubNet l3_sub_2
-
-Delete Sub Network In net_3
- [Documentation] Delete Sub Net for the Network with neutron request.
- OpenStackOperations.Delete SubNet l3_sub_3
-
-Delete Sub Network In net_4
- [Documentation] Delete Sub Net for the Network with neutron request.
- OpenStackOperations.Delete SubNet l3_sub_4
-
-Delete Sub Network In net_5
- [Documentation] Delete Sub Net for the Network with neutron request.
- OpenStackOperations.Delete SubNet l3_sub_5
-
-Delete Networks
- [Documentation] Delete Networks with neutron request.
- : FOR ${network} IN @{NETWORKS}
- \ OpenStackOperations.Delete Network ${network}
-
-Delete Security Group
- [Documentation] Delete security group with neutron request
- OpenStackOperations.Delete SecurityGroup ${SECURITY_GROUP}
-
-Verify Flows Cleanup
- [Documentation] Verify that flows have been cleaned up properly after removing all neutron configurations
- DataModels.Verify Flows Are Cleaned Up On All OpenStack Nodes
BuiltIn.Should Contain ${output} 64 bytes
${output} = DevstackUtils.Write Commands Until Prompt sudo ip netns exec qdhcp-${net_id} ping -c 10 @{NET1_VM_IPS}[0]
BuiltIn.Should Contain ${output} 64 bytes
-
-Delete Vm Instances In migration_net_1
- [Documentation] Delete Vm instances using instance names in network_1.
- : FOR ${vm} IN @{NET_1_VMS}
- \ OpenStackOperations.Delete Vm Instance ${vm}
-
-Delete Sub Networks In migration_net_1
- [Documentation] Delete Sub Nets for the Networks with neutron request.
- OpenStackOperations.Delete SubNet @{SUBNETS}[0]
-
-Delete Networks
- [Documentation] Delete Networks with neutron request.
- : FOR ${NetworkElement} IN @{NETWORKS}
- \ OpenStackOperations.Delete Network ${NetworkElement}
-
-Delete SecurityGroup
- [Documentation] Delete SecurityGroup with neutron request.
- OpenStackOperations.Delete SecurityGroup ${SECURITY_GROUP}
[Documentation] Login to the vm instance and test operations
${vm_ips} = BuiltIn.Create List @{NET_1_VM_IPS}[0]
OpenStackOperations.Test Operations From Vm Instance @{NETWORKS}[0] @{NET_1_VM_IPS}[1] ${vm_ips}
-
-Delete Vm Instances In net_1
- : FOR ${VmElement} IN @{NET_1_VMS}
- \ OpenStackOperations.Delete Vm Instance ${VmElement}
-
-Delete Security Groups
- OpenStackOperations.Delete SecurityGroup additional-sg
- OpenStackOperations.Delete SecurityGroup ${SECURITY_GROUP}