NSX|V3: ensure 'exclude' tag is correctly set
An port update with no port security delta resulted in the exclude tag being dropped from the port. This ensures that the tag is not dropped. Change-Id: I98b1e63da82e81d4314a469149f928ae12032998
This commit is contained in:
parent
50ef64ceb1
commit
dcb11ee799
|
@ -2280,6 +2280,10 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
|
|||
tags_update += self.nsxlib.ns_group.get_lport_tags(
|
||||
updated_port.get(ext_sg.SECURITYGROUPS, []) +
|
||||
updated_port.get(provider_sg.PROVIDER_SECURITYGROUPS, []))
|
||||
if (updated_excluded and
|
||||
utils.is_nsx_version_2_0_0(self._nsx_version)):
|
||||
tags_update.append({'scope': security.PORT_SG_SCOPE,
|
||||
'tag': nsxlib_consts.EXCLUDE_PORT})
|
||||
else:
|
||||
self._update_lport_with_security_groups(
|
||||
context, lport_id,
|
||||
|
|
Loading…
Reference in New Issue