From 3d1017c0515966b8927dff98d2e29085d7c655f2 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Thu, 15 Aug 2019 11:46:07 +0300 Subject: [PATCH] NSX|V3+P: fix _get_subnets_for_fixed_ips_on_port Change-Id: I8bb467246c39fb29a91bec9dc9feba2efc25bed8 --- vmware_nsx/plugins/common_v3/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vmware_nsx/plugins/common_v3/plugin.py b/vmware_nsx/plugins/common_v3/plugin.py index 0cd8c7446c..13d0b8a126 100644 --- a/vmware_nsx/plugins/common_v3/plugin.py +++ b/vmware_nsx/plugins/common_v3/plugin.py @@ -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,