aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/traffic_server.py
AgeCommit message (Collapse)AuthorFilesLines
2021-08-24Be explicit about text file encodingGwenael Lambrouin1-2/+2
Python PEP 597 (https://www.python.org/dev/peps/pep-0597) recommends to use an explicit encoding for text files instead of the default locale encoding. Pylint 2.10 adds a new checker named unspecified-encoding for that. The present patch adds explicit utf-8 encoding to open() calls in nfvbench and fixes pylint unspecified-encoding warnings. Remark: this patch does not change nfvbench behaviour on systems where utf-8 is the locale encoding, which is generally the case on Linux systems. Change-Id: Ic4dfb37e1ea958452a0173f7630a68f0d95071ae Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
2021-07-08NFVBENCH-215 Fix wrong throughput ratio in latency testsfmenguy1-2/+2
Change-Id: I5c976dd49a2c17b47559b1d6a565a6e78f7cfd0e Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
2021-04-28NFVBENCH-206 Fix TRex patches remaining codefmenguy1-15/+0
Change-Id: Ifebb89d9d0aa2a21257c8e925cd51faa07b88353 Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
2021-04-27NFVBENCH-190: Add a 'i40e_mixed' option, trex accepts other i40e driven ↵Pierrick Louin1-2/+30
ports to run in kernel mode on the same board Change-Id: I33b1d848f409e0431bd4e247456b1d697d8b9d04 Signed-off-by: Pierrick Louin <pierrick.louin@orange.com>
2021-03-05NFVBENCH-204 Remove some piece of code depending on a non merged patch ↵Pierrick Louin1-3/+1
(NFVBENCH-190) Signed-off-by: Pierrick Louin <pierrick.louin@orange.com> Change-Id: I34476f743f9ab0620f866e93ac068941a3a031af
2021-03-05NFVBENCH-202: Generalize auto T-Rex restart on every command line related ↵Pierrick Louin1-14/+25
parameter change. Signed-off-by: Pierrick Louin <pierrick.louin@orange.com> Change-Id: Ia8e572e8ebea37bb7fb2c898d6a311b522dec0b4 Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
2020-11-09NFVBENCH-187: Augment --l2-loopback command line option capabilitiesPierrick Louin1-2/+2
[vlan(s)|no-tag|true|false] - Update documentation Clarify some fuzzy coding in options processing [nfvbench.py] Change-Id: Ie6eec7722bfa557924f435f268b852c300e160df Signed-off-by: Pierrick Louin <pierrick.louin@orange.com>
2020-10-17NFVBENCH-181: Make T-Rex restart on 'cores' or 'vlan_tagging' parameter ↵Pierrick Louin1-1/+16
value change Change-Id: Ibd4e03f79699b811f7a245609c2cf45603796842 Signed-off-by: Pierrick Louin <pierrick.louin@orange.com>
2019-12-09NFVBENCH-153 Add support for python34.0.0Michael S. Pedersen1-3/+3
JIRA: NFVBENCH-153 Done using 2to3-3.6 with additional changes to fix data parsing and testing (tox) Signed-off-by: Michael S. Pedersen <michael.soelvkaer@gmail.com> Change-Id: I242902f800da543d780507828c9bd1fbf409da6d
2019-10-21NFVBENCH-146 Add cache_size optionPierrick Louin1-8/+15
Change-Id: I99c1242198e40bd75cfd013c829d0d24dbafb5d9 Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
2019-07-15NFVBENCH-144 Trex cannot take account NFVBench config (platform thread id 0)fmenguy1-3/+9
Change-Id: I9f9891dcc2dd446068ba577322680216f03cac35 Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
2019-07-13NFVBENCH-140 Retrieve High Dynamic Range latency histograms with TRex v2.593.5.0ahothan1-1/+3
Change-Id: I48ac8c0cf920139bad966cb477e8ba1ae0d0fd43 Signed-off-by: ahothan <ahothan@cisco.com>
2019-07-13NFVBENCH-143 Trex cannot start due to invalid config (platform None)ahothan1-23/+24
Change-Id: I8ada6076c62b449b8964f00cd52facea3736fa28 Signed-off-by: ahothan <ahothan@cisco.com>
2019-07-01NFVBENCH-139 Fix master_thread_id and latency_thread_id property checkingfmenguy1-16/+15
Change-Id: Ifdfa1d3fbdd3c5f0206870dd91860254a114967a Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
2019-06-22NFVBENCH-138 Use yaml.safe_load() instead of unsafe yaml load3.4.2ahothan1-1/+1
Change-Id: Ifa1796b8dbc1bc5d92dd765a18b9b8022d3b3289 Signed-off-by: ahothan <ahothan@cisco.com>
2019-04-15NFVBENCH-132 Upgrade to TRex v2.563.2.0ahothan1-1/+5
Change-Id: I003a143bb104aa577a9a5cefabf7c7c33e3beaf3 Signed-off-by: ahothan <ahothan@cisco.com>
2019-03-28Add possibility to restart TRex in case of config change or forced it with ↵fmenguy1-8/+28
config flag Change-Id: I40473eac355b76655220d48062eff851cc4eebc3 Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
2019-02-18NFVBENCH-121 Add TRex parameters to tune performance and allocate ressourcesFrançois-Régis MENGUY1-1/+33
Change-Id: I3dd091575cce19a31e8aff3d56ed3ea7e930fe83 Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
2018-11-26NFVBENCH-113 Add direct support for trex cores as an cli/config option3.0.2ahothan1-4/+8
Change-Id: Ic930b605a0eb821487ca4620bc7231794b9add08 Signed-off-by: ahothan <ahothan@cisco.com>
2018-11-20NFVBENCH-111 Add support for VxLAN3.0.0ahothan1-1/+2
Change-Id: I7d9d7ccb6be7445e625ec520d22c5f045b56d5ff Signed-off-by: ahothan <ahothan@cisco.com>
2018-10-082.0 beta NFVBENCH-91 Allow multi-chaining with separate edge networksahothan1-8/+8
Includes complete refactoring of code Beta for NFVbench 2.0 Change-Id: I2997f0fb7722d5ac626cd11a68692ae458c7676e Signed-off-by: ahothan <ahothan@cisco.com>
2018-03-20NFVBENCH-73 vlan_tagging parameter cause exceptionmortenhillbom1-2/+4
Change-Id: Ia2f091dfd05004806637e3e15076e04aa31bd433 Signed-off-by: mortenhillbom <mhillbom@cisco.com>
2018-02-09[NFVBENCH-65] 1.2.2: AttributeError: 'RunningTrafficProfile' object has no ↵ahothan1-1/+1
attribute 'software_mode' Fix exception Change-Id: Id95c31d8ba999e0da39fa07c4e31e696da89d98e Signed-off-by: ahothan <ahothan@cisco.com>
2018-01-02Multiple bugfixes for NFVbenchYichen Wang1-2/+3
[NFVBENCH-52] NFVbench should ignore the port security settings if not available [NFVBENCH-53] NFVbench should support to use software mode for TRex [NFVBENCH-54] NFVbench container should also map kernel sources when available to build KOs [NFVBENCH-55] Documentation enhancements to have better examples for using "$PWD" [NFVBENCH-57] NFVbench should support to build kernel modules on redhat distros Change-Id: Id6792d6711393b07ca59396c276a026bec9f1e86 Signed-off-by: Yichen Wang <yicwang@cisco.com>
2017-10-16NFVBENCH-40 Add pylint to toxKerim Gokarslan1-2/+4
Change-Id: Ic55a07145f27c4cfaa6df5523df3940ca4433af1 Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
2017-07-31Initial code drop from Cisco1.0.0ahothan1-0/+64
Change-Id: Ie2993886dc8e95c5f73ccdb871add8b96ffcc849 Signed-off-by: ahothan <ahothan@cisco.com>