Public bug reported:
neutron help router-interface-delete
usage: neutron router-interface-delete [-h] [--request-format {json}]
ROUTER INTERFACE
Remove an internal network interface from a router
In face it is not "Remove" from a router , it's delete a port from router.
When i use a port to add route :
[root@tecs218 ~(keystone_admin)]# neutron router-create test
Created a new router:
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| external_gateway_info | |
| id | 4039bd93-b183-4250-af0f-e9739ac1a19a |
| name | test |
| status | ACTIVE |
| tenant_id | 0d76aad1dda94f83a2a0a55c04547434 |
+-----------------------+--------------------------------------+
[root@tecs218 ~(keystone_admin)]# neutron router-interface-add test
port=90e0abe1-852b-4cfe-afd9-2bd31a42c279
Added interface 90e0abe1-852b-4cfe-afd9-2bd31a42c279 to router test.
[root@tecs218 ~(keystone_admin)]# neutron router-interface-add test
port=90e0abe1-852b-4cfe-afd9-2bd31a42c27^C
[root@tecs218 ~(keystone_admin)]# neutron port-show
90e0abe1-852b-4cfe-afd9-2bd31a42c279
+---------------------+-----------------------------------------------------------------------------------+
| Field | Value
|
+---------------------+-----------------------------------------------------------------------------------+
| admin_state_up | True
|
| bandwidth | 0
|
| binding:host_id |
|
| binding:profile | {}
|
| binding:vif_details | {}
|
| binding:vif_type | unbound
|
| binding:vnic_type | normal
|
| bond | 0
|
| cbs | 0
|
| device_id | 4039bd93-b183-4250-af0f-e9739ac1a19a
|
| device_owner | network:router_interface
|
| dscp | 0
|
| extra_dhcp_opts |
|
| fixed_ips | {"subnet_id": "b72b9698-6e07-4199-8c53-0411c90ce9d3",
"ip_address": "10.10.10.9"} |
| id | 90e0abe1-852b-4cfe-afd9-2bd31a42c279
|
| mac_address | fa:16:3e:c2:d5:bc
|
| name |
|
| network_id | e4b72e3a-fcaf-4e29-9c30-9f219ac5643c
|
| status | DOWN
|
| tenant_id | 0d76aad1dda94f83a2a0a55c04547434
|
+---------------------+-----------------------------------------------------------------------------------+
[root@tecs218 ~(keystone_admin)]# neutron router-interface-delete test
port=90e0abe1-852b-4cfe-afd9-2bd31a42c279
Removed interface from router test.
[root@tecs218 ~(keystone_admin)]# neutron port-show
90e0abe1-852b-4cfe-afd9-2bd31a42c279
Unable to find port with name '90e0abe1-852b-4cfe-afd9-2bd31a42c279'
I think the better way is when you use a subnet to add a router. It's OK to
delete the port.
But ,when use a port to add a router , It's better to remove it form router,
not delete.
** Affects: neutron
Importance: Undecided
Assignee: Yan Songming (songmingyan)
Status: New
** Changed in: neutron
Assignee: (unassigned) => Yan Songming (songmingyan)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1552056
Title:
use router-interface-delete is to delete a port not remove
Status in neutron:
New
Bug description:
neutron help router-interface-delete
usage: neutron router-interface-delete [-h] [--request-format {json}]
ROUTER INTERFACE
Remove an internal network interface from a router
In face it is not "Remove" from a router , it's delete a port from router.
When i use a port to add route :
[root@tecs218 ~(keystone_admin)]# neutron router-create test
Created a new router:
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| external_gateway_info | |
| id | 4039bd93-b183-4250-af0f-e9739ac1a19a |
| name | test |
| status | ACTIVE |
| tenant_id | 0d76aad1dda94f83a2a0a55c04547434 |
+-----------------------+--------------------------------------+
[root@tecs218 ~(keystone_admin)]# neutron router-interface-add test
port=90e0abe1-852b-4cfe-afd9-2bd31a42c279
Added interface 90e0abe1-852b-4cfe-afd9-2bd31a42c279 to router test.
[root@tecs218 ~(keystone_admin)]# neutron router-interface-add test
port=90e0abe1-852b-4cfe-afd9-2bd31a42c27^C
[root@tecs218 ~(keystone_admin)]# neutron port-show
90e0abe1-852b-4cfe-afd9-2bd31a42c279
+---------------------+-----------------------------------------------------------------------------------+
| Field | Value
|
+---------------------+-----------------------------------------------------------------------------------+
| admin_state_up | True
|
| bandwidth | 0
|
| binding:host_id |
|
| binding:profile | {}
|
| binding:vif_details | {}
|
| binding:vif_type | unbound
|
| binding:vnic_type | normal
|
| bond | 0
|
| cbs | 0
|
| device_id | 4039bd93-b183-4250-af0f-e9739ac1a19a
|
| device_owner | network:router_interface
|
| dscp | 0
|
| extra_dhcp_opts |
|
| fixed_ips | {"subnet_id": "b72b9698-6e07-4199-8c53-0411c90ce9d3",
"ip_address": "10.10.10.9"} |
| id | 90e0abe1-852b-4cfe-afd9-2bd31a42c279
|
| mac_address | fa:16:3e:c2:d5:bc
|
| name |
|
| network_id | e4b72e3a-fcaf-4e29-9c30-9f219ac5643c
|
| status | DOWN
|
| tenant_id | 0d76aad1dda94f83a2a0a55c04547434
|
+---------------------+-----------------------------------------------------------------------------------+
[root@tecs218 ~(keystone_admin)]# neutron router-interface-delete test
port=90e0abe1-852b-4cfe-afd9-2bd31a42c279
Removed interface from router test.
[root@tecs218 ~(keystone_admin)]# neutron port-show
90e0abe1-852b-4cfe-afd9-2bd31a42c279
Unable to find port with name '90e0abe1-852b-4cfe-afd9-2bd31a42c279'
I think the better way is when you use a subnet to add a router. It's OK to
delete the port.
But ,when use a port to add a router , It's better to remove it form router,
not delete.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1552056/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp