diff options
author | Deepak S <deepak.s@linux.intel.com> | 2017-03-09 19:56:30 +0530 |
---|---|---|
committer | Deepak S <deepak.s@linux.intel.com> | 2017-03-09 20:37:25 +0530 |
commit | 1365e88a55a8649e33d11f3d27f2fb1964bfae00 (patch) | |
tree | 4375ca3007a9d1df83401ebe592dd8d4ce44707f /yardstick/network_services/vnf_generic | |
parent | dfda13a6a3eadeb316f391a91052da2820dcb9b7 (diff) |
Bug Fix: force the network to attacht to trex to start the traffic
Change-Id: I73744a9e0f1830688a171f3f28044926b13f8a43
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Diffstat (limited to 'yardstick/network_services/vnf_generic')
-rw-r--r-- | yardstick/network_services/vnf_generic/vnf/tg_trex.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yardstick/network_services/vnf_generic/vnf/tg_trex.py b/yardstick/network_services/vnf_generic/vnf/tg_trex.py index 2731476e0..1e751bfce 100644 --- a/yardstick/network_services/vnf_generic/vnf/tg_trex.py +++ b/yardstick/network_services/vnf_generic/vnf/tg_trex.py @@ -31,6 +31,7 @@ from stl.trex_stl_lib.trex_stl_exceptions import STLError LOG = logging.getLogger(__name__) DURATION = 30 +WAIT_QUEUE = 1 TREX_SYNC_PORT = 4500 TREX_ASYNC_PORT = 4501 @@ -259,6 +260,7 @@ class TrexTrafficGen(GenericTrafficGen): "tx_throughput_mbps": float(xe_value.get("tx_bps", 0.0)), "in_packets": xe_value.get("ipackets", 0), "out_packets": xe_value.get("opackets", 0)} + time.sleep(WAIT_QUEUE) queue.put(samples) self.client.disconnect() |