NSX|V3+P: fix _get_subnets_for_fixed_ips_on_port
Change-Id: I8bb467246c39fb29a91bec9dc9feba2efc25bed8
This commit is contained in:
parent
e98e3b563a
commit
3d1017c051
|
@ -623,9 +623,9 @@ class NsxPluginV3Base(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
|
|||
subnet_ids = (fixed_ip['subnet_id']
|
||||
for fixed_ip in port_data['fixed_ips'])
|
||||
|
||||
# check only dhcp enabled subnets
|
||||
return (self._get_subnet(context.elevated(), subnet_id)
|
||||
for subnet_id in subnet_ids)
|
||||
return (self._get_subnet(context.elevated(), subnet_id)
|
||||
for subnet_id in subnet_ids)
|
||||
return []
|
||||
|
||||
def _validate_create_port(self, context, port_data):
|
||||
self._validate_max_ips_per_port(context,
|
||||
|
|
Loading…
Reference in New Issue