I left this out of the previous patch because it took a little more
work to tease this out and I want comments on this independent of the
other patch.
Change-Id: I7c4a19c5ddd03e8732be60f4437371976a3b6a5a
Partially-Implements: bp/restructure-l3-agent
super(DvrRouter, self).perform_snat_action(snat_callback, *args)
+ def process_external(self, agent):
+ ex_gw_port = self.get_ex_gw_port()
+ if ex_gw_port:
+ self.create_dvr_fip_interfaces(ex_gw_port)
+ super(DvrRouter, self).process_external(agent)
+
def create_dvr_fip_interfaces(self, ex_gw_port):
floating_ips = self.get_floating_ips()
fip_agent_port = self.get_floating_agent_gw_interface(
return
# Process SNAT/DNAT rules and addresses for floating IPs
- if self.router['distributed']:
- self.create_dvr_fip_interfaces(ex_gw_port)
self.process_snat_dnat_for_fip()
# Once NAT rules for floating IPs are safely in place