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
This commit is contained in:
Kobi Samoray 2019-06-05 14:49:51 +03:00
parent 74c9a66e00
commit a5d89413f3
1 changed files with 2 additions and 0 deletions

View File

@ -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'])