samplevnf: fix make_ip_addr 55/39455/2
authorRoss Brattain <ross.b.brattain@intel.com>
Wed, 9 Aug 2017 00:56:42 +0000 (17:56 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Thu, 17 Aug 2017 03:10:35 +0000 (03:10 +0000)
we get TypeError sometimes, so
we need to catch them

Change-Id: I5fc58006f18acf84f62d8f4a21077d71b2fb0ed8
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
yardstick/network_services/helpers/samplevnf_helper.py

index 543d814..dbaa47c 100644 (file)
@@ -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