]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add address family to 'ip rule' calls
authorBrian Haley <brian.haley@hp.com>
Tue, 25 Nov 2014 02:33:20 +0000 (21:33 -0500)
committerBrian Haley <brian.haley@hp.com>
Mon, 26 Jan 2015 21:34:51 +0000 (16:34 -0500)
commit4d774ef13cc4292f4fd95082ec1ceb0db24b39c7
treea2d019f5d8c9f353bf4dfa905c53c18780e79db3
parentdbb72fa3fb5fdfd0b46abf07528f38595b70c24a
Add address family to 'ip rule' calls

Without an address family, 'ip rule' won't work with IPv6
arguments because it assumes IPv4.  This causes the l3-agent
to throw an error when adding a rule in DVR mode.

Also changed these functions to be more symmetrical and take the
same arguments, which required a little tweaking, but it looks
much cleaner now.

Change-Id: I85718d8d6ffcf3dec2a6b92641a731af813114aa
Closes-bug: #1376325
neutron/agent/l3/dvr.py
neutron/agent/linux/ip_lib.py
neutron/tests/unit/test_l3_agent.py
neutron/tests/unit/test_linux_ip_lib.py