diff options
author | fmenguy <francoisregis.menguy@orange.com> | 2020-05-06 17:35:35 +0200 |
---|---|---|
committer | fmenguy <francoisregis.menguy@orange.com> | 2020-05-27 11:07:32 +0200 |
commit | 143c4ff68068fd704e7eb4df1c82af29f087c871 (patch) | |
tree | 969713b19beae3944d5d25beb9a3dae8ed6fcf63 /nfvbench/traffic_gen/traffic_utils.py | |
parent | caac5c7f6e80d33d5031f26e5e0f0ea6f1d3789b (diff) |
[NFVBENCH-168] Improve config properties managed after a REST call
Change-Id: I20973c1c405dec8cce58f984e1fb84e345013b25
Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'nfvbench/traffic_gen/traffic_utils.py')
-rw-r--r-- | nfvbench/traffic_gen/traffic_utils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nfvbench/traffic_gen/traffic_utils.py b/nfvbench/traffic_gen/traffic_utils.py index c875a5d..4366a6c 100644 --- a/nfvbench/traffic_gen/traffic_utils.py +++ b/nfvbench/traffic_gen/traffic_utils.py @@ -14,7 +14,6 @@ import bitmath -from nfvbench.utils import multiplier_map # IMIX frame size including the 4-byte FCS field IMIX_L2_SIZES = [64, 594, 1518] @@ -23,6 +22,11 @@ IMIX_RATIOS = [7, 4, 1] IMIX_AVG_L2_FRAME_SIZE = sum( [1.0 * imix[0] * imix[1] for imix in zip(IMIX_L2_SIZES, IMIX_RATIOS)]) / sum(IMIX_RATIOS) +multiplier_map = { + 'K': 1000, + 'M': 1000000, + 'G': 1000000000 +} def convert_rates(l2frame_size, rate, intf_speed): """Convert a given rate unit into the other rate units. |