Add '--from-port-id' for port-create
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
For admin, there is a need that clone a port, and i think it is conveniently that port-create command is attached a parameter '--from-port-id'.
Use cases
=========
In certain commercial scenery, such as DC cases using TECS of ZTE, it is always been mentioned that a port should be cloned from a existing port. The succeeder inherit the reasonable properties of the former, such like parent network, mtu, qos-policy and security-group, etc.
Now like below:
============
Now, port-create command of neutron has no similar parameter.
I think it should be:
=======
[root@localhost devstack]# neutron port-create clone_one --from-port-id 394d5dc8-
Created a new port inherited from 394d5dc8-
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| created_at | 2016-08-08T18:08:13 |
| description | |
| device_id | |
| device_owner | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "fd8cb18b-
| id | 52a75cf5-
| mac_address | fa:16:3e:44:74:ac |
| name | |
| network_id | d9da67c4-
| port_security_
| security_groups | 8acc88a6-
| status | DOWN |
| tenant_id | 48f4bc5cdb8d44a
| updated_at | 2016-08-08T18:08:13 |
+------
Changed in neutron: | |
assignee: | nobody → LiuYong (liu-yong8) |
Changed in neutron: | |
importance: | Undecided → Wishlist |
Bug closed due to lack of activity, please feel free to reopen if needed.