NSB TRex: convert DPDK port number to logical TRex port number 03/48903/1
authorRoss Brattain <ross.b.brattain@intel.com>
Thu, 2 Nov 2017 23:54:56 +0000 (16:54 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Thu, 14 Dec 2017 04:17:20 +0000 (04:17 +0000)
commite947f924af1fbd0012690f535b1e0922e2cb1d20
tree3ba76f37ac941ccd1a31aeac0677dc681795001b
parent71f18a582481c3d51c8e2a1450f4ca71bd2a20d7
NSB TRex: convert DPDK port number to logical TRex port number

when we create TRex config we sort based on PCI bus address
and create a logical port ordering.

We need to save this port ordering and re-use it everywhere.

redirect vnfd_helper.port_num() to resource_helper.port_num() to
use the logical mapping

Change-Id: Ibff628556d5e11e686e15716a66a3210758c4ff0
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit ce52059f5f78912eeff2d97235c1028c218bf960)
tests/unit/network_services/vnf_generic/vnf/test_tg_trex.py
yardstick/network_services/traffic_profile/rfc2544.py
yardstick/network_services/vnf_generic/vnf/sample_vnf.py
yardstick/network_services/vnf_generic/vnf/tg_trex.py