]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Merge "Remove unused code"
authorJenkins <jenkins@review.openstack.org>
Thu, 13 Feb 2014 14:55:26 +0000 (14:55 +0000)
committerGerrit Code Review <review@openstack.org>
Thu, 13 Feb 2014 14:55:26 +0000 (14:55 +0000)
1  2 
neutron/agent/l3_agent.py

index 4475ed6c3ff8eedb213cb6957a66021bdeb26949,64ddf06f6a6feba7ad7778944d94b6bd23cba7c9..9931b36660f7bff7870a7fbfafdeeb74c33107d0
@@@ -428,18 -428,13 +428,17 @@@ class L3NATAgent(firewall_l3_agent.FWaa
          ri.perform_snat_action(self._handle_router_snat_rules,
                                 internal_cidrs, interface_name)
  
 -        # Process DNAT rules for floating IPs
 +        # Process SNAT/DNAT rules for floating IPs
          if ex_gw_port:
 -            self.process_router_floating_ips(ri, ex_gw_port)
 +            self.process_router_floating_ip_nat_rules(ri)
  
          ri.ex_gw_port = ex_gw_port
-         ri.enable_snat = ri.router.get('enable_snat')
          self.routes_updated(ri)
          ri.iptables_manager.defer_apply_off()
 +        # Once NAT rules for floating IPs are safely in place
 +        # configure their addresses on the external gateway port
 +        if ex_gw_port:
 +            self.process_router_floating_ip_addresses(ri, ex_gw_port)
  
      def _handle_router_snat_rules(self, ri, ex_gw_port, internal_cidrs,
                                    interface_name, action):