NSX|V3: ensure that DHCP profile is not created for ENS port

Unable to create a DHCP switch profile for a ENS port

Change-Id: Ia9de30d4651b11ebdfb1be4a8499f18ad24cae73
This commit is contained in:
Gary Kotton 2017-10-13 05:43:53 +03:00 committed by garyk
parent 1222be4620
commit 4be174ea26

View File

@ -1781,7 +1781,8 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
mac_learning_profile_set = True
profiles.append(self._get_port_security_profile_id())
if device_owner == const.DEVICE_OWNER_DHCP:
profiles.append(self._dhcp_profile)
if not self._is_ens_tz_port(context, port_data):
profiles.append(self._dhcp_profile)
# Add QoS switching profile, if exists
qos_policy_id = None