Fix update dhcp bindings

The patch Ife6263b7cf1759a2fc309205552eb79138d512a1 support
configuration of both name and uuid for parameter dhcp_profile.
All places which calling method build_server_config should add
the profile id to the return dict.

Change-Id: I2c55bf203f7b101defa0f27fdd0168a6c6ba7358
This commit is contained in:
Zhenmei 2016-10-12 01:41:08 -04:00
parent 09560ebe8f
commit a630d905d1
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ def nsx_update_dhcp_bindings(resource, event, trigger, **kwargs):
project_name='admin')
server_data = nsxlib.native_dhcp.build_server_config(
network, subnet, port, net_tags)
server_data['dhcp_profile_id'] = dhcp_profile_uuid
dhcp_server = dhcp_server_resource.create(**server_data)
LOG.info(_LI("Created logical DHCP server %(server)s for "
"network %(network)s"),