NSX|V3: fix create port with provider security group
If provider security groups are configured and there is no port security then we throw an exception. ensure that port security is enabled if provider cre Change-Id: I14b1a4bca8bde253aee3c25e09442869f45da77e
This commit is contained in:
parent
60c44020eb
commit
339606bfc8
|
@ -1967,7 +1967,8 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
|
|||
(sgids, psgids) = self._get_port_security_groups_lists(
|
||||
context, port)
|
||||
elif (self._check_update_has_security_groups({'port': port_data}) or
|
||||
self._provider_sgs_specified(port_data)):
|
||||
self._provider_sgs_specified(port_data) or
|
||||
self._get_provider_security_groups_on_port(context, port)):
|
||||
raise psec_exc.PortSecurityAndIPRequiredForSecurityGroups()
|
||||
else:
|
||||
sgids = psgids = []
|
||||
|
|
Loading…
Reference in New Issue