]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Refactor netns.execute so that it is not necessary to check namespace
authorCarl Baldwin <carl.baldwin@hp.com>
Tue, 4 Mar 2014 04:24:55 +0000 (04:24 +0000)
committerCarl Baldwin <carl.baldwin@hp.com>
Tue, 4 Mar 2014 16:13:44 +0000 (16:13 +0000)
commit40390598c5a440d1bbfa4f229130eeedf5cd4dba
treef13e8bf76a04ab37282d4d159d476deb52c3bdde
parent78366adca893738891bf5428286dcb9c01a5ca3a
Refactor netns.execute so that it is not necessary to check namespace

I saw some code in a couple of reviews today that check whether a
namespace is set and run it under "ip netns exec ..." if it is.
Otherwise, it runs the command without it in the default namespace.

Change-Id: I55e8f4f3523ec7a7c5a6f082addf918952a05741
Closes-Bug: #1287524
neutron/agent/l3_agent.py
neutron/agent/linux/dhcp.py
neutron/agent/linux/external_process.py
neutron/agent/linux/ip_lib.py
neutron/tests/unit/test_l3_agent.py
neutron/tests/unit/test_linux_external_process.py