diff --git a/vmware_nsx/plugins/nsx_p/plugin.py b/vmware_nsx/plugins/nsx_p/plugin.py index 8a2d75a4ef..97889d3cac 100644 --- a/vmware_nsx/plugins/nsx_p/plugin.py +++ b/vmware_nsx/plugins/nsx_p/plugin.py @@ -1582,6 +1582,7 @@ class NsxPolicyPlugin(nsx_plugin_common.NsxPluginV3Base): # pylint: disable=unexpected-keyword-arg self.nsxpolicy.tier1.update_route_advertisement( router_id, + static_routes=not new_enable_snat, nat=actions['advertise_route_nat_flag'], subnets=actions['advertise_route_connected_flag'], tier0=new_tier0_uuid) @@ -1602,6 +1603,7 @@ class NsxPolicyPlugin(nsx_plugin_common.NsxPluginV3Base): # Only update route advertisement self.nsxpolicy.tier1.update_route_advertisement( router_id, + static_routes=not new_enable_snat, nat=actions['advertise_route_nat_flag'], subnets=actions['advertise_route_connected_flag'])