NSX|P: Fix subnet dhcp update

Subnet data was missing the subnet ID causing errors when trying to
enable dhcp on a subnet attached to a router.

Change-Id: Ie8ad846fb50adae571fc70a349fa980dbf9ac2e9
This commit is contained in:
asarfaty 2020-12-15 10:51:20 +02:00 committed by Adit Sarfaty
parent 3ff7919862
commit e9bed7798c
1 changed files with 3 additions and 2 deletions

View File

@ -1543,9 +1543,10 @@ class NsxPolicyPlugin(nsx_plugin_common.NsxPluginV3Base):
{'net': net_id, 'ver': ip_version})
LOG.error(msg)
raise n_exc.InvalidInput(error_message=msg)
updated_data = orig_subnet
updated_data.update(subnet_data)
self._validate_segment_subnets_num(
context, net_id, subnet_data)
context, net_id, updated_data)
updated_subnet = super(NsxPolicyPlugin, self).update_subnet(
context, subnet_id, subnet)