Depends-On: Ic7c0a0b04d2bf47cfe7c905faf7b455dfde38489
Change-Id: Ie0e483e622cdc164f6c7357ffb58579c383584dd
Signed-off-by: Sam Hague <shague@redhat.com>
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
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
: FOR ${module} IN @{modules}
\ ${output} = OpenStack CLI openstack ${module} list
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.
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']}
: 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
: FOR ${router} IN @{routers}
\ BuiltIn.Run Keyword And Ignore Error Cleanup Router ${router['ID']}
@{ports} = OpenStack CLI Get List openstack port list -f json
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
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
: FOR ${module} IN @{modules}
\ ${output} = OpenStack CLI openstack ${module} list
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.
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']}
: 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
: FOR ${router} IN @{routers}
\ BuiltIn.Run Keyword And Ignore Error Cleanup Router ${router['ID']}
@{ports} = OpenStack CLI Get List openstack port list -f json