Merge "Always call create_rtr_2_fip_link" into stable/ocata

This commit is contained in:
Jenkins 2017-06-26 23:25:01 +00:00 committed by Gerrit Code Review
commit 43a81fda42
2 changed files with 7 additions and 7 deletions

View File

@ -294,10 +294,11 @@ class FipNamespace(namespaces.Namespace):
# Now add the filter match rule for the table.
ip_rule = ip_lib.IPRule(namespace=self.get_name())
ip_rule.rule.add(ip=str(fip_2_rtr.ip),
iif=fip_2_rtr_name,
table=rt_tbl_index,
priority=rt_tbl_index)
ip_rule.rule.add(**{'ip': str(fip_2_rtr.ip),
'iif': fip_2_rtr_name,
'table': rt_tbl_index,
'priority': rt_tbl_index,
'from': '0.0.0.0/0'})
def _update_gateway_port(self, agent_gateway_port, interface_name):
if (self.agent_gateway_port and

View File

@ -558,10 +558,9 @@ class DvrLocalRouter(dvr_router_base.DvrRouterBase):
else:
self.fip_ns.create_or_update_gateway_port(fip_agent_port)
if (self.fip_ns.agent_gateway_port and
(self.dist_fip_count == 0)):
if self.fip_ns.agent_gateway_port:
self.fip_ns.create_rtr_2_fip_link(self)
self.routes_updated([], self.router['routes'])
self.routes_updated(self.routes, self.router['routes'])
def update_routing_table(self, operation, route):
# TODO(Swami): The static routes should be added to the