Skip to content
Snippets Groups Projects
Commit 19331ca2 authored by Bob Lantz's avatar Bob Lantz
Browse files

use net.addLink() so that link is cleaned up

parent 9483f637
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment