updates to set default nodes for ns3 examples
This commit is contained in:
parent
8155cdc617
commit
67501c9000
6 changed files with 21 additions and 10 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue