]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Replace a usage of the deprecated root_helper option
authorCedric Brandily <zzelle@gmail.com>
Mon, 24 Mar 2014 22:03:15 +0000 (23:03 +0100)
committerCedric Brandily <zzelle@gmail.com>
Tue, 25 Mar 2014 08:58:02 +0000 (09:58 +0100)
This change replaces a usage of the deprecated root_helper option
by the usage of get_root_helper result.

Change-Id: Icfc698243784557cbf987a817c13d0b80969e5d3
Closes-Bug: #1297145

neutron/agent/l3_agent.py

index 27fa5fac53052cfde21f337d451ccdaf99580c13..aed9bd0f8c6c1e099f52197011c5ba93ecfc799a 100644 (file)
@@ -861,7 +861,7 @@ class L3NATAgent(firewall_l3_agent.FWaaSL3AgentRpcCallback, manager.Manager):
     def _update_routing_table(self, ri, operation, route):
         cmd = ['ip', 'route', operation, 'to', route['destination'],
                'via', route['nexthop']]
-        ip_wrapper = ip_lib.IPWrapper(self.conf.root_helper,
+        ip_wrapper = ip_lib.IPWrapper(self.root_helper,
                                       namespace=ri.ns_name())
         ip_wrapper.netns.execute(cmd, check_exit_code=False)