Refactor RFC2455 TRex traffic profile injection 29/57929/26
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Thu, 24 May 2018 13:02:03 +0000 (14:02 +0100)
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Mon, 18 Jun 2018 12:51:21 +0000 (13:51 +0100)
commit340be73be5fd20067c23a7ddce9073639e355d3a
tree87c02e70ee75fff473e6b8916ed43e039c4da1f3
parent1517319fd210d71db72c5e4bfa00fc49ae4fa877
Refactor RFC2455 TRex traffic profile injection

The TRex RFC2455 traffic profile configures the duration of the traffic
injection. Once the traffic is started, the traffic profile should poll
the traffic injector client for the injection status. When the injection
is finished, the traffic execution should end.

Instead of this, the traffic profile waits a fixed time (using time.sleep
method) and then stops the traffic. This approach is not accurate and may
cause shorter injection periods.

JIRA: YARDSTICK-1197

Change-Id: I5090df81ef4ec7945ff6c1aff070656b48e0fe77
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
17 files changed:
yardstick/benchmark/scenarios/networking/vnf_generic.py
yardstick/common/utils.py
yardstick/network_services/traffic_profile/base.py
yardstick/network_services/traffic_profile/ixia_rfc2544.py
yardstick/network_services/traffic_profile/rfc2544.py
yardstick/network_services/traffic_profile/trex_traffic_profile.py
yardstick/network_services/vnf_generic/vnf/sample_vnf.py
yardstick/network_services/vnf_generic/vnf/tg_rfc2544_trex.py
yardstick/network_services/vnf_generic/vnf/tg_trex.py
yardstick/tests/unit/benchmark/contexts/standalone/test_model.py
yardstick/tests/unit/common/test_utils.py
yardstick/tests/unit/network_services/traffic_profile/test_base.py
yardstick/tests/unit/network_services/traffic_profile/test_rfc2544.py
yardstick/tests/unit/network_services/traffic_profile/test_trex_traffic_profile.py
yardstick/tests/unit/network_services/vnf_generic/vnf/test_sample_vnf.py
yardstick/tests/unit/network_services/vnf_generic/vnf/test_tg_rfc2544_trex.py
yardstick/tests/unit/network_services/vnf_generic/vnf/test_tg_trex.py