From a5d89413f322f35d6ffecde10c1c713e6d50e30f Mon Sep 17 00:00:00 2001 From: Kobi Samoray Date: Wed, 5 Jun 2019 14:49:51 +0300 Subject: [PATCH] NSXP: advertise static routes on no-snat When a router is attached to provider net with SNAT disabled, the router should advertise the configured static routes. Change-Id: I56f305a88acd00e58b602e453a22f2e93e6e61fc --- vmware_nsx/plugins/nsx_p/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vmware_nsx/plugins/nsx_p/plugin.py b/vmware_nsx/plugins/nsx_p/plugin.py index 7b8f16b7db..01706fc61f 100644 --- a/vmware_nsx/plugins/nsx_p/plugin.py +++ b/vmware_nsx/plugins/nsx_p/plugin.py @@ -1570,6 +1570,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) @@ -1590,6 +1591,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'])