]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use wrappers instead of direct calls to ip route.
authorRoman Podolyaka <rpodolyaka@mirantis.com>
Wed, 20 Mar 2013 16:50:50 +0000 (18:50 +0200)
committerRoman Podolyaka <rpodolyaka@mirantis.com>
Wed, 3 Apr 2013 14:16:26 +0000 (17:16 +0300)
commitf80f06a71de6e235c71e0333448cf59e44745c45
tree9ffcd81d64f28c7f5db525c15797f4b1d86c7458
parent2ac053e9cfbb30fe4e077f9d802325dfbe48b671
Use wrappers instead of direct calls to ip route.

 - extract the logic of ip route wrapper into a separate
   class to drop dependency on a specific network device
 - add route wrapper to IPWrapper class
 - use IPWrapper instead of direct calls to ip route in l3 agent
 - update tests

Fixes bug 1133133.

Change-Id: Ic7174b0676d1a565909bb5f6f950376cf8fae8d2
quantum/agent/dhcp_agent.py
quantum/agent/l3_agent.py
quantum/agent/linux/ip_lib.py
quantum/tests/unit/test_l3_agent.py
quantum/tests/unit/test_linux_ip_lib.py