11 usage: performance.py [-h] [-case CASE]
12 [-tool {pktgen,netperf,qperf,iperf,netmap}]
13 [-protocol {tcp,udp}] [-profile {rdp,fastlink,l2switch}]
14 [-type {throughput,latency,frameloss}] [-sizes SIZES]
18 -h, --help show this help message and exit
19 -case CASE test case like Ti-1, Tn-1, Tnv-1, Tu-1...
20 -tool {pktgen,netperf,qperf,iperf,netmap}
22 -profile {rdp,fastlink,l2switch}
23 -type {throughput,latency,frameloss}
24 -sizes SIZES test size list "64 128"
25 --monitor MONITOR which ip to be monitored
29 conn = Server(host=args.monitor)
30 flows_settings = FlowsSettings()
31 tool_settings = ToolSettings()
32 tester_settings = TesterSettings()
33 flow_producer = FlowsProducer(conn, flows_settings)
34 provider = PerfProvider(flows_settings.settings, tool_settings.settings, tester_settings.settings)
35 perf = Performance(conn, provider)
36 flow_producer.create(scenario, case)
37 LOG.info(flows_settings.settings())
38 result = perf.run(tool, protocol, type, sizes)