Fix for multi-stream configuration 45/33345/1
authorMarco Varlese <marco.varlese@suse.com>
Thu, 13 Apr 2017 14:00:23 +0000 (16:00 +0200)
committerMarco Varlese <marco.varlese@suse.com>
Thu, 13 Apr 2017 14:01:38 +0000 (16:01 +0200)
The multistream configuration is not passed to the remote host where the traffic generator (MoonGen) runs.

Change-Id: I3e9862553b5b064272f3bfffb788c06ebd3740ca
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
tools/pkt_gen/moongen/moongen.py

index 9d604db..570720e 100644 (file)
@@ -114,6 +114,9 @@ class Moongen(ITrafficGenerator):
 
         out_file.write("testType = \"throughput\",\n")
 
+        out_file.write("nrFlows = " + \
+            str(traffic['multistream']) + ",\n")
+
         out_file.write("runBidirec = " + \
             traffic['bidir'].lower() + ",\n")