X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwcal%2Fplugins%2Fvala%2Frwcal_openstack%2Frift%2Frwcal%2Fopenstack%2Futils%2Fnetwork.py;h=8e5107bf07fc0141c8fa1bb86b09e65c61fdf037;hb=refs%2Fchanges%2F56%2F1256%2F1;hp=b0c58af24ae27c1c0c3ba37e96bc2b47f25dcd6c;hpb=620d1e79488947802bef39a4eca545737744e883;p=osm%2FSO.git diff --git a/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/utils/network.py b/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/utils/network.py index b0c58af2..8e5107bf 100644 --- a/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/utils/network.py +++ b/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/utils/network.py @@ -1,6 +1,6 @@ #!/usr/bin/python -# +# # Copyright 2017 RIFT.IO Inc # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -155,8 +155,11 @@ class NetworkUtils(object): else: raise NotImplementedError("Port Type: %s not supported" %(cp.type_yang)) - if cp.static_ip_address: - args["fixed_ips"] = [{"ip_address" : cp.static_ip_address}] + try: + if cp.static_ip_address: + args["fixed_ips"] = [{"ip_address" : cp.static_ip_address}] + except Exception as e: + pass if 'port_security_enabled' in cp: args['port_security_enabled'] = cp.port_security_enabled