]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Set ip_nonlocal_bind in namespace if it exists
authorBrian Haley <brian.haley@hpe.com>
Fri, 16 Oct 2015 22:02:16 +0000 (18:02 -0400)
committerBrian Haley <brian.haley@hpe.com>
Tue, 20 Oct 2015 13:47:41 +0000 (09:47 -0400)
commit24acc41b9314729a0fbbc88b1f8cb19a331a3dc7
tree7e924cadf176c8f086492f22286badce0ef0796c
parent30840f78517d0d716b7a4e4a500d5b67c28f43fa
Set ip_nonlocal_bind in namespace if it exists

Somewhere in the 3.19 kernel timeframe ip_nonlocal_bind was
changed to be a per-namespace attribute. To be backwards
compatible we need to try that first, then fall-back to
setting the one in the root namespace if it fails.

Closes-Bug: #1507078
Change-Id: I018e800bc8d4e85d067aaae865c9b04bf030c980
neutron/agent/l3/dvr_fip_ns.py
neutron/agent/linux/ip_lib.py
neutron/tests/unit/agent/l3/test_dvr_fip_ns.py
neutron/tests/unit/agent/linux/test_external_process.py
neutron/tests/unit/agent/linux/test_ip_lib.py