WNS.simulationModel.nodes = [varp] + WNS.simulationModel.nodes vdhcp = VirtualDHCPServer("vDHCP@", "theOnlySubnet", "192.168.0.2", "192.168.254.253", "255.255.0.0") WNS.simulationModel.nodes.append(vdhcp) vdns = VirtualDNSServer("vDNS", "ip.DEFAULT.GLOBAL") WNS.simulationModel.nodes.append(vdns) # Configure probes for evaluation Evaluation.installEvaluation(sim = WNS, loggingStations = range(1, configuration.numberOfStations + 1), dll = WNS.simulationModel.nodes[1].dll, maxPacketDelay = 0.5, # s maxPacketSize = 2000*8, # Bit maxBitThroughput = 10E6, # Bit/s maxPacketThroughput = 1E6, # Packets/s delayResolution = 1000, sizeResolution = 2000, throughputResolution = 10000) node = openwns.evaluation.createSourceNode(WNS, "glue.phyTrace") node.getLeafs().appendChildren( openwns.evaluation.JSONTrace(key="__json__", description="JSON testing in PhyUser")) #openwns.evaluation.default.installEvaluation(sim = WNS) openwns.setSimulator(WNS)