Fix NSB NfVi support for 25 and 40Gbps 57/59157/5
authorXavier Simonart <xavier.simonart@intel.com>
Tue, 5 Jun 2018 12:06:29 +0000 (14:06 +0200)
committerEmma Foley <emma.l.foley@intel.com>
Fri, 29 Jun 2018 10:06:22 +0000 (10:06 +0000)
commitce391da0b431238005746536cef7685e38c71976
treefb208675e4298f4e6a277a219c678b34a5fb938a
parentba78ba90ee81e1138de2252f769453f45dde16fe
Fix NSB NfVi support for 25 and 40Gbps

When setting interface_speed option in the test case, NSB/PROX
was still considering 100% as 10 Gbps.
With this fix, when interface_speed is set to for instance 25 Gbps
then NSB/PROX will start generate at 25 Gbps.
Yardstick logging info printed on the screen will show performance result
as percentage of interface_speed (e.g. 100% will be 25 Gbps).
This is done by sending the command "speed 250" to PROX (PROX cannot
know the underlying interface speed in all cases e.g. in virtio, and
hence considers 100% as 10Gbps).

JIRA: YARDSTICK-1217

Change-Id: I4989161b04a7afa5e347935ee7ccef7dfe5a504d
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
(cherry picked from commit 1d61af34eb7b35b912d124768ad26eb5f0cd03a8)
yardstick/network_services/vnf_generic/vnf/prox_helpers.py