From 64579b717d47ab7f654c574794831be984bf32e1 Mon Sep 17 00:00:00 2001 From: ahothan Date: Thu, 10 Sep 2020 12:11:35 -0700 Subject: NFVBENCH-176 Cannot run service mode with flow stats Change-Id: Iac920f75ea95c8d53afceeebf6445a4416d089d8 Signed-off-by: ahothan --- docs/testing/user/userguide/advanced.rst | 10 +++++++--- nfvbench/traffic_client.py | 4 +++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/testing/user/userguide/advanced.rst b/docs/testing/user/userguide/advanced.rst index 26e1740..ba212c5 100644 --- a/docs/testing/user/userguide/advanced.rst +++ b/docs/testing/user/userguide/advanced.rst @@ -440,9 +440,13 @@ In another bash window, you should connect to the TRex console doing : .. code-block:: bash - cd /opt/trex/vX.XX/ #use completion here to find your corresponding TRex version - ./trex-console -r - capture start monitor --rx [port number] -v + cd /opt/trex/vX.XX/ # use completion here to find your corresponding TRex version + ./trex-console --python3 -r + # capture on port number 0 + capture monitor start --rx 0 -v + + # to stop capture + capture monitor stop Start this capture once you have started the NFVBench test, and you will observe packets on the TRex console : diff --git a/nfvbench/traffic_client.py b/nfvbench/traffic_client.py index 460e7c2..e2ae977 100755 --- a/nfvbench/traffic_client.py +++ b/nfvbench/traffic_client.py @@ -861,8 +861,10 @@ class TrafficClient(object): if self.config.no_latency_streams: LOG.info("Latency streams are disabled") + # in service mode, we must disable flow stats (e2e=True) self.gen.create_traffic(frame_size, self.run_config['rates'], bidirectional, - latency=not self.config.no_latency_streams) + latency=not self.config.no_latency_streams, + e2e=self.runner.service_mode) def _modify_load(self, load): self.current_total_rate = {'rate_percent': str(load)} -- cgit 1.2.3-korg