X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=tools%2Fdeployment%2Fopenstack_ha%2Flibraries%2FOpenStackOperations.robot;h=036f6ada14274eb4c2568c141d5bf1110d7dc2f5;hb=3060158ef20adae464e65bf3e6d9717bf58fc56c;hp=22f980155687b655cbb4f0f76edb296243f5374c;hpb=ec5d482b2531961c3af17855410bc91884abe2e6;p=integration%2Ftest.git diff --git a/tools/deployment/openstack_ha/libraries/OpenStackOperations.robot b/tools/deployment/openstack_ha/libraries/OpenStackOperations.robot index 22f9801556..036f6ada14 100644 --- a/tools/deployment/openstack_ha/libraries/OpenStackOperations.robot +++ b/tools/deployment/openstack_ha/libraries/OpenStackOperations.robot @@ -1004,8 +1004,7 @@ Neutron Cleanup OpenStack List All [Documentation] Get a list of different OpenStack resources that might be in use. @{modules} = BuiltIn.Create List server port network subnet security group - ... security group rule - BuiltIn.Run Keyword If "${ODL_ENABLE_L3_FWD}"=="yes" Collections.Append To List ${modules} floating ip router + ... security group rule floating ip router : FOR ${module} IN @{modules} \ ${output} = OpenStack CLI openstack ${module} list @@ -1036,15 +1035,13 @@ OpenStack CLI With No Log OpenStack Cleanup All [Documentation] Cleanup all Openstack resources with best effort. The keyword will query for all resources ... in use and then attempt to delete them. Errors are ignored to allow the cleanup to continue. - @{fips} = BuiltIn.Run Keyword If "${ODL_ENABLE_L3_FWD}"=="yes" OpenStack CLI Get List openstack floating ip list -f json - ... ELSE BuiltIn.Create List @{EMPTY} + @{fips} = OpenStack CLI Get List openstack floating ip list -f json : FOR ${fip} IN @{fips} \ BuiltIn.Run Keyword And Ignore Error Delete Floating IP ${fip['ID']} @{vms} = OpenStack CLI Get List openstack server list -f json : FOR ${vm} IN @{vms} \ BuiltIn.Run Keyword And Ignore Error Delete Vm Instance ${vm['ID']} - @{routers} = BuiltIn.Run Keyword If "${ODL_ENABLE_L3_FWD}"=="yes" OpenStack CLI Get List openstack router list -f json - ... ELSE BuiltIn.Create List @{EMPTY} + @{routers} = OpenStack CLI Get List openstack router list -f json : FOR ${router} IN @{routers} \ BuiltIn.Run Keyword And Ignore Error Cleanup Router ${router['ID']} @{ports} = OpenStack CLI Get List openstack port list -f json