Removing a router in some situations require CLI intervention to remove a network interface
Step 1: List the router properties
# neutron router-show 2220a15d-1bb9-485f-905d-5eb2f5280d8f +-------------------------+--------------------------------------+ | Field | Value | +-------------------------+--------------------------------------+ | admin_state_up | True | | availability_zone_hints | | | availability_zones | nova | | created_at | 2017-08-22T16:06:41Z | | description | | | external_gateway_info | | | flavor_id | | | id | 2220a15d-1bb9-485f-905d-5eb2f5280d8f | | name | Peel403 | | project_id | a6024170acd045c59ae9f2fb6b14feeb | | revision_number | 14 | | routes | | | status | ACTIVE | | tags | | | tenant_id | a6024170acd045c59ae9f2fb6b14feeb | | updated_at | 2017-11-17T15:52:09Z | +-------------------------+--------------------------------------+
Step 2: List the ports using the router id
# neutron router-port-list 2220a15d-1bb9-485f-905d-5eb2f5280d8f +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+ | id | name | mac_address | fixed_ips | +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+ | 86db7ae5-d426-435d-93eb-5c292f3784d2 | | fa:16:3e:53:0d:47 | {"subnet_id": "b439e409-ef95-4c60-abb2-59077841f094", "ip_address": "10.0.0.1"} | +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
Step 3: Remove router interface
neutron router-interface-delete 2220a15d-1bb9-485f-905d-5eb2f5280d8f b439e409-ef95-4c60-abb2-59077841f094 Removed interface from router 2220a15d-1bb9-485f-905d-5eb2f5280d8f.
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.