NSX|V3+V: Handle fwaas policy modification

Commit I6623367e9b8af6433c914f5b3864695fa886d332 partially fixed the case where
a firewall group policy is removed/changed.
This patch adds a fix so the the firewall group will not be considered INACTIVE

Change-Id: Iba2b7b056c4f63b77a6232e36c8784bc90e6b8e1
This commit is contained in:
Adit Sarfaty 2019-02-24 09:38:48 +02:00
parent 56db730573
commit 05de286ae2
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ class NsxFwaasCallbacksV2(firewall_l3_agent_v2.L3WithFWaaS):
# No change in ports, but policy changed so all ports are
# relevant
fwg_port_ids = firewall_group['ports']
# Mark to the driver that this is not port deletion
firewall_group['last-port'] = False
elif not require_new_plugin:
routers = self._get_routers_in_project(
context, firewall_group['tenant_id'])