Fixed compilation issue on dpdk 19.08 (and more recent)
[samplevnf.git] / VNFs / DPPD-PROX / helper-scripts / rapid / rapid_warmuptest.py
index 6a9daa7..55f07be 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/python
 
 ##
-## Copyright (c) 2010-2020 Intel Corporation
+## Copyright (c) 2020 Intel Corporation
 ##
 ## Licensed under the Apache License, Version 2.0 (the "License");
 ## you may not use this file except in compliance with the License.
@@ -35,14 +35,14 @@ class WarmupTest(RapidTest):
     # If not doing this, the ARP message could be dropped by a switch in overload and then the test will not give proper results
     # Note hoever that if we would run the test steps during a very long time, the ARP would expire in the switch.
     # PROX will send a new ARP request every seconds so chances are very low that they will all fail to get through
-        size = int(self.test['packetsize'])
+        imix = self.test['imix']
         FLOWSIZE = int(self.test['flowsize'])
         WARMUPSPEED = int(self.test['warmupspeed'])
         WARMUPTIME = int(self.test['warmuptime'])
         self.gen_machine.set_generator_speed(WARMUPSPEED)
-        self.gen_machine.set_udp_packet_size(size)
+        self.gen_machine.set_udp_packet_size(imix)
     #    gen_machine['socket'].set_value(gencores,0,56,1,1)
-        self.gen_machine.set_flows(FLOWSIZE)
+        _ = self.gen_machine.set_flows(FLOWSIZE)
         self.gen_machine.start()
         time.sleep(WARMUPTIME)
         self.gen_machine.stop()