Expose advertise_static_routes prop from router api
A tier-1 logical router allows us to advertise the static routes configured as well. This can be done by setting the advertise_route_static property to True, which is similar to advertise_route_nat, or advertise_route_connected. Until now, the router api client in the code didnt not expose advertise_route_static option. This patch adds that property to the update_advertisement method. We also set the default value to False since, the default value when we create the router is False. So unless someone wants it the default behavious stays the same. Change-Id: Ic56df4fe81ea52e43f05b1ffd0c8fbcde8f00370
This commit is contained in:
parent
4be367da5d
commit
2c9feb35be
@ -111,12 +111,16 @@ class RouterLib(object):
|
||||
self._router_port_client.delete(tier1_link_port_id)
|
||||
self._router_port_client.delete(tier0_link_port_id)
|
||||
|
||||
def update_advertisement(self, logical_router_id, advertise_route_nat,
|
||||
advertise_route_connected, enabled=True):
|
||||
def update_advertisement(self, logical_router_id,
|
||||
advertise_route_nat,
|
||||
advertise_route_connected,
|
||||
advertise_route_static=False,
|
||||
enabled=True):
|
||||
return self.nsxlib.update_logical_router_advertisement(
|
||||
logical_router_id,
|
||||
advertise_nat_routes=advertise_route_nat,
|
||||
advertise_nsx_connected_routes=advertise_route_connected,
|
||||
advertise_static_routes=advertise_route_static,
|
||||
enabled=enabled)
|
||||
|
||||
def delete_gw_snat_rule(self, logical_router_id, gw_ip):
|
||||
|
Loading…
x
Reference in New Issue
Block a user