NSX-V3: Update edge firewall after SR creation

In case firewall rules were added to a router, and SR was created,
make sure the backed firewall will get updated.

Change-Id: I624383ca5a9fad686ed829ecd8355b213579b4cb
This commit is contained in:
Adit Sarfaty 2019-04-17 12:32:31 +03:00
parent e435a2cea6
commit c04147d8e8

View File

@ -90,6 +90,7 @@ class Nsxv3FwaasCallbacksV2(com_callbacks.NsxCommonv3FwaasCallbacksV2):
if not exists_on_backend:
self.core_plugin.create_service_router(
context, router_id, update_firewall=False)
exists_on_backend = True
else:
# First, check if other services exist and use the sr
sr_exists = self.core_plugin.service_router_has_services(