How to delete a subnet in neutron?
I'm setting up my cloud, based on Juno, and I'm following the setup guides on http://openstack.org . I have just added a subnet, but after adding it realise that it has wrong IP addresses. The subnet is displayed with neutron subnet-list:
[root@controller ~]# neutron subnet-list
+--------------------------------------+-------------+----------------+----------------------------------------------------+
| id | name | cidr | allocation_pools |
+--------------------------------------+-------------+----------------+----------------------------------------------------+
| bb384bc5-1df7-470d-86ca-9f4fd5cad3a1 | ext-subnet | 203.0.113.0/24 | {"start": "203.0.113.101", "end": "203.0.113.200"} |
| 0d762f12-d158-474c-8c59-1509c4d9318b | demo-subnet | 192.168.1.0/24 | {"start": "192.168.1.2", "end": "192.168.1.254"}
Now I would like to remove the subnet and create it again with the correct IP addressing, but I'm getting a HTTP 409:
[root@controller ~]# neutron subnet-delete bb384bc5-1df7-470d-86ca-9f4fd5cad3a1
Conflict (HTTP 409) (Request-ID: req-80a96f97-4bad-4384-a782-a3a7f668fa12)
What am I missing?
Thanks, Sander