aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-08-08 17:56:42 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-08-17 03:10:35 +0000
commite07484ef707af89c12ebf3e9ed4490d9ff588750 (patch)
tree83e208c4cae10086530383854bdd022f8c4b7d00
parent255ae5b1e6e85f118ef42298bfbc8dce1ad1969f (diff)
samplevnf: fix make_ip_addr
we get TypeError sometimes, so we need to catch them Change-Id: I5fc58006f18acf84f62d8f4a21077d71b2fb0ed8 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
-rw-r--r--yardstick/network_services/helpers/samplevnf_helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/network_services/helpers/samplevnf_helper.py b/yardstick/network_services/helpers/samplevnf_helper.py
index 543d814df..dbaa47c19 100644
--- a/yardstick/network_services/helpers/samplevnf_helper.py
+++ b/yardstick/network_services/helpers/samplevnf_helper.py
@@ -90,7 +90,7 @@ class MultiPortConfig(object):
def make_ip_addr(ip, mask_len):
try:
return ipaddress.ip_interface(six.text_type('/'.join([ip, mask_len])))
- except ValueError:
+ except (TypeError, ValueError):
# None so we can skip later
return None