Commit f122489d authored by Martín Ferrari's avatar Martín Ferrari

netns.import_if as a convenience name for ImportedInterface class

parent d56f5400
......@@ -5,7 +5,7 @@ import os, socket, sys, traceback, unshare, weakref
from netns.environ import *
import netns.protocol, netns.subprocess_
__all__ = ['Node', 'get_nodes']
__all__ = ['Node', 'get_nodes', 'import_if']
class Node(object):
_nodes = weakref.WeakValueDictionary()
......@@ -189,4 +189,4 @@ def _start_child(debug, nonetns):
# NOTREACHED
get_nodes = Node.get_nodes
import_if = netns.interface.ImportedInterface(interface)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment