vmware-nsx/neutron
Miguel Angel Ajo 95b62b9491 Fix IpNetnsCommand to execute without root_wrapper when no netns
IpNetnsCommand accept execution with a network namespace, and
that requires root privileges and a root_wrapper.
IpNetnsCommand does accept no namespace too, in that case, the
root_wrapper doesn't have to be present necessarily, unless the
command we're executing requires root privileges itself.

This patch fixes the check condition on IpNetnsCommand execute
method.

Change-Id: I5ab2f3f1daf4a5a080611dbcd3dbd43292f6766a
Closes-Bug: #1358196
2014-08-25 21:21:21 +02:00
..
agent Fix IpNetnsCommand to execute without root_wrapper when no netns 2014-08-25 21:21:21 +02:00
api Send HTTP exceptions in the format expected by neutronclient 2014-08-18 17:21:45 +04:00
cmd Move ARP responder test to sanity command 2014-07-29 18:44:07 +03:00
common Merge "Ensure ip6tables are used only if ipv6 is enabled in kernel" 2014-08-21 21:28:00 +00:00
db Merge "Raise proper exception in case duplicate ipv6 address is allocated" 2014-08-25 18:26:11 +00:00
debug Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
extensions Merge "SecurityGroupRuleExists should point out rule id inseand of group id" 2014-08-19 21:50:03 +00:00
hacking Use jsonutils instead of stdlib json 2014-08-14 12:45:58 +02:00
locale Imported Translations from Transifex 2014-08-17 06:06:09 +00:00
notifiers Fix spelling mistakes 2014-08-01 16:10:23 +00:00
openstack Fix spelling mistakes 2014-08-01 16:10:23 +00:00
plugins Merge "ML2 Type driver refactor part 1" 2014-08-25 03:33:53 +00:00
scheduler Fix session's InvalidRequestError because of nested rollback 2014-08-08 16:01:49 -07:00
server Configure agents using neutron.common.config.init (formerly .parse) 2014-06-17 21:56:24 +02:00
services Merge "A10 Networks LBaaS v1 Driver" 2014-08-21 21:32:12 +00:00
tests Fix IpNetnsCommand to execute without root_wrapper when no netns 2014-08-25 21:21:21 +02:00
__init__.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
auth.py add auth token to context 2014-08-12 11:17:21 +09:00
context.py add auth token to context 2014-08-12 11:17:21 +09:00
hooks.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
manager.py Moved rpc_compat.py code back into rpc.py 2014-06-24 10:35:39 +02:00
neutron_plugin_base_v2.py Renamed start_rpc_listener -> start_rpc_listeners 2014-06-19 12:58:01 +02:00
policy.py Allow to import _LC, _LE, _LI and _LW functions directly 2014-07-17 14:56:19 +00:00
quota.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
service.py Moved rpc_compat.py code back into rpc.py 2014-06-24 10:35:39 +02:00
version.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
wsgi.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00