summaryrefslogtreecommitdiffstats
path: root/yardstick/network_services/traffic_profile/prox_profile.py
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2018-10-04 09:56:37 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-10-04 09:56:37 +0000
commit44d77847d87f7511ca1e7b2e65d96b1239361340 (patch)
tree3bc95c8d5a70c4c2b7da8a779fd85740828276d1 /yardstick/network_services/traffic_profile/prox_profile.py
parentb2407946ba2c1011eb4e3b72fe604ba66a7147df (diff)
parent5f84d63605d7dbcf23ef329680b6721953bd598b (diff)
Merge "NSB PROX NFVi Test does not stop after reaching expected precision" into stable/gambia
Diffstat (limited to 'yardstick/network_services/traffic_profile/prox_profile.py')
-rw-r--r--yardstick/network_services/traffic_profile/prox_profile.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/yardstick/network_services/traffic_profile/prox_profile.py b/yardstick/network_services/traffic_profile/prox_profile.py
index 343ef1da2..de4b3f9a0 100644
--- a/yardstick/network_services/traffic_profile/prox_profile.py
+++ b/yardstick/network_services/traffic_profile/prox_profile.py
@@ -16,6 +16,7 @@
from __future__ import absolute_import
import logging
+import multiprocessing
from yardstick.network_services.traffic_profile.base import TrafficProfile
from yardstick.network_services.vnf_generic.vnf.prox_helpers import ProxProfileHelper
@@ -56,7 +57,7 @@ class ProxProfile(TrafficProfile):
def __init__(self, tp_config):
super(ProxProfile, self).__init__(tp_config)
self.queue = None
- self.done = False
+ self.done = multiprocessing.Event()
self.results = []
# TODO: get init values from tp_config
@@ -116,7 +117,7 @@ class ProxProfile(TrafficProfile):
try:
pkt_size = next(self.pkt_size_iterator)
except StopIteration:
- self.done = True
+ self.done.set()
return
# Adjust packet size upwards if it's less than the minimum