Commit 9b8ee6f2 authored by alina's avatar alina

added 'add_tun' method in node.py

parent a77b99f3
......@@ -116,6 +116,12 @@ class Node(object):
setattr(i, k, v)
return i
def add_tun(self, **kwargs):
i = netns.interface.TunNodeInterface(self)
for k, v in kwargs.items():
setattr(i, k, v)
return i
def import_if(self, interface):
return netns.interface.ImportedNodeInterface(self, 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