neutron_fwaas.privileged.utils module

neutron_fwaas.privileged.utils module

exception neutron_fwaas.privileged.utils.BackInNamespaceExit

Bases: exceptions.SystemExit

Raised if we fail to moved back process in its original namespace.

neutron_fwaas.privileged.utils.in_namespace(*args, **kwds)

Move current process in a specific namespace.

This contextmanager moves current process in a specific namespace and ensures to move it back in original namespace or kills it if we fail to move back in original namespace.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.