Merge "NSX|V3: ensure 'exclude' tag is correctly set" into stable/ocata

This commit is contained in:
Jenkins 2017-06-10 09:08:21 +00:00 committed by Gerrit Code Review
commit a82b4c5944
1 changed files with 4 additions and 0 deletions

View File

@ -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,