From: tierno Date: Mon, 26 Mar 2018 10:11:46 +0000 (+0200) Subject: fixed error at vnf parsing internal vld X-Git-Tag: v4.0.0~36 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F08%2F5908%2F1;p=osm%2FRO.git fixed error at vnf parsing internal vld Change-Id: I7f46b390e5c5990baeaa7d839916adea9ec973ca Signed-off-by: tierno --- diff --git a/openmanod b/openmanod index aaa00cca..18ca8cc2 100755 --- a/openmanod +++ b/openmanod @@ -48,7 +48,7 @@ import osm_ro __author__ = "Alfonso Tierno, Gerardo Garcia, Pablo Montes" __date__ = "$26-aug-2014 11:09:29$" -__version__ = "0.5.55-r565" +__version__ = "0.5.56-r566" version_date = "Mar 2018" database_version = 28 # expected database schema version diff --git a/osm_ro/nfvo.py b/osm_ro/nfvo.py index b94d13b4..c2f331be 100644 --- a/osm_ro/nfvo.py +++ b/osm_ro/nfvo.py @@ -916,7 +916,7 @@ def new_vnfd_v3(mydb, tenant_id, vnf_descriptor): HTTP_Bad_Request) db_ip_profiles[ip_profile_name2db_table_index[ip_profile_name]]["net_id"] = net_uuid else: #check no ip-address has been defined - for icp in vld.get("internal-connection-point"): + for icp in vld.get("internal-connection-point").itervalues(): if icp.get("ip-address"): raise NfvoException("Error at 'vnfd[{}]':'vld[{}]':'internal-connection-point[{}]' " "contains an ip-address but no ip-profile has been defined at VLD".format(