Enable to set DHCP port attributes

Registered by Itsuro Oda

DHCP ports are created automatically. There is no chance to specify its attributes (ex. ip address) by a user.
There is a requirement to be able to specify ip address of a DHCP port by our customer.
 I propose adding a function to "add network to dhcp agent" API that enbale to specify a dhcp port attributes and create a dhcp port when the network attached to an agent.

API:
POST v2.0/agent/<agent id>/networks
body
{ 'network_id': <network id>,
  'dhcp_port': {'name': <name>, 'fixed_ips': <fixed_ips>, 'mac_address': <mac address>}}

'dhcp_port' is added. It is not required. If it is ommited a dhcp port will not be created at the time. There is no problem for API compatibility.

Blueprint information

Status:
Complete
Approver:
Mark McClain
Priority:
Undefined
Drafter:
Itsuro Oda
Direction:
Needs approval
Assignee:
Itsuro Oda
Definition:
Obsolete
Series goal:
None
Implementation:
Needs Code Review
Milestone target:
None
Started by
Itsuro Oda
Completed by
Armando Migliaccio

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/enable-to-set-dhcp-port-attributes,n,z

Addressed by: https://review.openstack.org/61026
    Enable to set dhcp port attributes.

Specification added. Please check.
https://wiki.openstack.org/wiki/Neutron/enable-to-set-dhcp-port-attributes

Feb. 13th
CLI specification is added to the specification Wiki.
https://review.openstack.org/73141

Addressed by: https://review.openstack.org/89969
    Enable to set DHCP port attributes

Addressed by: https://review.openstack.org/98278
    Make not schedule dhcp-agent when dhcp port creation

Question: When dhcp_agents_per_network is set to value greater than 1, how this work ?

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.