The 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.
-
neutron_fwaas.privileged.utils.
setns
(netns)¶ Mimic future pyroute2 setns.