${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