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

This commit is contained in:
Zuul 2017-10-16 23:24:51 +00:00 committed by Gerrit Code Review
commit 354b39dc8f

View File

@ -1781,6 +1781,7 @@ 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:
if not self._is_ens_tz_port(context, port_data):
profiles.append(self._dhcp_profile)
# Add QoS switching profile, if exists