removed node map file and utilities, added formal class methods to session objects and added checks for specific classes where needed
This commit is contained in:
parent
8c348b5ab1
commit
b14012e5e9
24 changed files with 161 additions and 264 deletions
|
@ -27,11 +27,11 @@ import optparse
|
|||
import sys
|
||||
|
||||
import ns.core
|
||||
|
||||
from core.nodes import nodeutils, nodemaps, ipaddress
|
||||
from corens3.obj import Ns3Session
|
||||
from corens3.obj import Ns3WifiNet
|
||||
|
||||
from core.nodes import ipaddress
|
||||
|
||||
|
||||
def add_to_server(session):
|
||||
"""
|
||||
|
@ -50,7 +50,6 @@ def wifisession(opt):
|
|||
"""
|
||||
Run a test wifi session.
|
||||
"""
|
||||
nodeutils.set_node_map(nodemaps.NODES)
|
||||
session = Ns3Session(1, persistent=True, duration=opt.duration)
|
||||
session.name = "ns3wifi"
|
||||
session.filename = session.name + ".py"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue