updates to set default nodes for ns3 examples

This commit is contained in:
Blake J. Harnden 2017-08-18 08:48:33 -07:00
parent 8155cdc617
commit 67501c9000
6 changed files with 21 additions and 10 deletions

View file

@ -40,7 +40,7 @@ Here are the basic elements of a CORE Python script:
from core.session import Session
from core.netns import nodes
session = Session(persistent=True)
session = Session(1, persistent=True)
node1 = session.add_object(cls=nodes.CoreNode, name="n1")
node2 = session.add_object(cls=nodes.CoreNode, name="n2")
hub1 = session.add_object(cls=nodes.HubNode, name="hub1")