NSX|P: RE-Enable GW firewall when creating a service router

Removing the service router disables the FW, so when the plugind re-adds it,
it should be enabled again.

Change-Id: Ib7441d26425dbfe77475ad6147619c12b03d60ba
This commit is contained in:
Adit Sarfaty 2019-08-12 10:46:08 +03:00
parent 25e1f60b6e
commit bdf93a4382

View File

@ -1589,9 +1589,10 @@ class NsxPolicyPlugin(nsx_plugin_common.NsxPluginV3Base):
tier0_uuid)
try:
# Enable standby relocation on this router
self.nsxpolicy.tier1.set_standby_relocation(
router['id'], enable_standby_relocation=True)
# Enable standby relocation & FW on this router
self.nsxpolicy.tier1.update(
router['id'], disable_firewall=False,
enable_standby_relocation=True)
except Exception as ex:
LOG.warning("Failed to enable standby relocation for router "
"%s: %s", router_id, ex)