From 19331ca287c50bb739dd95ce771513f4b1e3c2db Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Tue, 3 Feb 2015 16:02:07 -0800 Subject: [PATCH] use net.addLink() so that link is cleaned up --- examples/sshd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/sshd.py b/examples/sshd.py index 39107ec..3fbd182 100755 --- a/examples/sshd.py +++ b/examples/sshd.py @@ -39,7 +39,7 @@ def connectToRootNS( network, switch, ip, routes ): routes: host networks to route to""" # Create a node in root namespace and link to switch 0 root = Node( 'root', inNamespace=False ) - intf = Link( root, switch ).intf1 + intf = network.addLink( root, switch ).intf1 root.setIP( ip, intf=intf ) # Start network that now includes link to root namespace network.start()