NSX-V: Fail only if DHCP enabled when updating external subnet
The current logic is forbidding all sort of updates on subnets associated with external networks. Change-Id: I89f3ef821534f26b820790b48ba385889498ff46
This commit is contained in:
parent
445be3afb4
commit
a9a8bfa13b
|
@ -3036,7 +3036,8 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
|
|||
gateway_ip = orig['gateway_ip']
|
||||
enable_dhcp = orig['enable_dhcp']
|
||||
orig_host_routes = orig['host_routes']
|
||||
self._validate_external_subnet(context, orig['network_id'])
|
||||
if s.get('enable_dhcp'):
|
||||
self._validate_external_subnet(context, orig['network_id'])
|
||||
self._validate_host_routes_input(subnet,
|
||||
orig_enable_dhcp=enable_dhcp,
|
||||
orig_host_routes=orig_host_routes)
|
||||
|
|
Loading…
Reference in New Issue