aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick
diff options
context:
space:
mode:
authorVolodymyr Mytnyk <volodymyrx.mytnyk@intel.com>2019-02-07 11:47:15 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-02-07 11:47:15 +0000
commit27fd329c26e2ae2d9d2ee4f3ebaf5e05bfa4f2e7 (patch)
tree2091a806e0f22a62269949a12c87825143b9c7b4 /yardstick
parent155d5fd7d8c3d0b69d79efca67946fa26f7ef37f (diff)
parent65db4a71ee253c5710e5d58e124b06c08b2ef5b3 (diff)
Merge "Add Warning for key issue ixload"
Diffstat (limited to 'yardstick')
-rw-r--r--yardstick/network_services/vnf_generic/vnf/tg_ixload.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/yardstick/network_services/vnf_generic/vnf/tg_ixload.py b/yardstick/network_services/vnf_generic/vnf/tg_ixload.py
index 97b36d708..38b00a4b2 100644
--- a/yardstick/network_services/vnf_generic/vnf/tg_ixload.py
+++ b/yardstick/network_services/vnf_generic/vnf/tg_ixload.py
@@ -142,7 +142,12 @@ class IxLoadTrafficGen(sample_vnf.SampleVNFTrafficGen):
"external-interface"] if
intf["virtual-interface"]["vld_id"] == name)
- links[name]["ip"]["gateway"] = gateway
+ try:
+ links[name]["ip"]["gateway"] = gateway
+ except KeyError:
+ LOG.error("Invalid traffic profile: No IP section defined for %s", name)
+ raise
+
except StopIteration:
LOG.debug("Cant find gateway for link %s", name)
links[name]["ip"]["gateway"] = "0.0.0.0"