Skip to content

Commit

Permalink
Clean up floating ip and router in fusioncloud job
Browse files Browse the repository at this point in the history
- remove unattached floating ip
- remove "router_1" and "router_2"

Related-Bug: theopenlab/openlab#130
  • Loading branch information
kiwik committed Dec 11, 2018
1 parent b9d553d commit 37b7427
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
openstack port delete `openstack port list -f value -c ID -c Name |grep port_1 |awk '{ print $1 }'` || true
openstack subnet delete `openstack subnet list -f value -c ID -c Name |grep -E 'tf_test_subnet|subnet_1|huaweicloud_subnet' |awk '{ print $1 }'` || true
openstack network delete `openstack network list -f value -c ID -c Name |grep -E 'tf_test_network|network_1' |awk '{ print $1 }'` || true
openstack router delete `openstack router list -f value -c ID -c Name |grep -E 'test_vpc|vpc_test|vpc_test1|terraform-testacc-vpc-data-source' |awk '{ print $1 }'` || true
openstack router delete `openstack router list -f value -c ID -c Name |grep -E 'test_vpc|vpc_test|vpc_test1|router_1|router_2|terraform-testacc-vpc-data-source' |awk '{ print $1 }'` || true
openstack image delete `openstack image list -f value -c ID -c Name |grep -E 'CirrOS-tf|Rancher TerraformAccTest' |awk '{ print $1 }'` || true
openstack keypair delete `openstack keypair list -f value -c Name |grep -E 'hth_key|kp_1'` || true
openstack security group delete `openstack security group list -f value -c ID -c Name |grep -E 'sg_|secgroup_1' |awk '{ print $1 }'` || true
openstack floating ip delete `openstack floating ip list -f value -c ID -c Port |grep 'None' |awk '{ print $1 }'` || true
executable: /bin/bash
environment: '{{ global_env }}'

0 comments on commit 37b7427

Please sign in to comment.