Bug 1042493

Summary: [RFE][neutron]: Enable to set DHCP port attributes
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: RFEsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: markmc, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/neutron/+spec/enable-to-set-dhcp-port-attributes
Whiteboard: upstream_milestone_none upstream_status_needs-code-review upstream_definition_obsolete
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1271735 1271736 (view as bug list) Environment:
Last Closed: 2015-03-19 17:13:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1271735, 1271736    

Description RHOS Integration 2013-12-12 22:26:48 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/neutron/+spec/enable-to-set-dhcp-port-attributes.

Description:

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.

Specification URL (additional information):

None