by using both a namespace and uuid of dhcp

Registered by inhye.park

When I create a dhcp net, I add a specific name attribute of the dhcp. So We can use both the uuid and namespace in the below case.
quantum net-create <dhcp_name>
root@nova3:~# quantum net-list
+--------------------------------------+---------+------------------------------------------------------------------------+
| id | name | subnets |
+--------------------------------------+---------+------------------------------------------------------------------------+
| 41baaaea-8ddc-443e-a890-9a47610dac9f | net_grizzly | 8c080460-1f8c-412a-aa55-1a8e62a66042 50.50.2.0/24 |
+--------------------------------------+---------+------------------------------------------------------------------------+

In current method:
    - When "ip netns list" in network node searched, it is not easy to know about dhcp. Because It is viewed as the dhcp ID.

        root@nova4:~# ip netns list
            qdhcp-41baaaea-8ddc-443e-a890-9a47610dac9f
            qrouter-e449e76b-33e9-47ff-8d6a-7efcdd3a0e9b

In new method:
    - When "ip netns list" in network node searched, it is easy to know about dhcp. Because It is viewed with the preset name alias of dhcp
        root@nova4:~# ip netns list
            qdhcp-net_grizzly
            qrouter-router_grizzly

Blueprint information

Status:
Complete
Approver:
Mark McClain
Priority:
Low
Drafter:
None
Direction:
Needs approval
Assignee:
inhye.park
Definition:
Obsolete
Series goal:
None
Implementation:
Started
Milestone target:
None
Started by
inhye.park
Completed by
Mark McClain

Related branches

Sprints

Whiteboard

markmcclain 4-Jun: UUIDs are unambiguous. Names are supplied by users which are then passed to command lines executed as root. The amount of security issues that could arise are far more than the benefit.

gongysh 06/03/13: name is not unique in quantum, it is a label, so If u want to improve, how about using qrouter-<routername>-<uuid> or qdhcp-<networkname>-uuid? Pay attention to spaces in routername, non-ansi character in name and other stuff.

And also I think it can be done with a bug report since this change is small.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.