vnf_generic: Fix str object has no attribute items 05/43505/1
authorDino Madarang <dinox.madarang@intel.com>
Thu, 28 Sep 2017 18:10:28 +0000 (18:10 +0000)
committerRoss Brattain <ross.b.brattain@intel.com>
Thu, 28 Sep 2017 19:46:07 +0000 (12:46 -0700)
commit64e6d4d5eb38109b22a1fa095ace08b55a054642
tree0f66ac70ff2f3301869613d78e6485989a6e3c70
parent0db868278e13d21998bd677bfc782557d44ab381
vnf_generic: Fix str object has no attribute items

When an IP range is specified in src_ip/dst_ip like:
src_ip:
   - '152.16.100.180-152.16.100.181'
yardstick would return str object has no attribute items error.
This change will return the IP range as is if type is str.

Change-Id: I3b097777f0d85b0600207157bebba18987ea2275
Signed-off-by: Dino Simeon Madarang <dinox.madarang@intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
tests/unit/benchmark/scenarios/networking/test_vnf_generic.py
yardstick/benchmark/scenarios/networking/vnf_generic.py