fixed error at vnf parsing internal vld 08/5908/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 26 Mar 2018 10:11:46 +0000 (12:11 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 26 Mar 2018 10:13:23 +0000 (12:13 +0200)
Change-Id: I7f46b390e5c5990baeaa7d839916adea9ec973ca
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
openmanod
osm_ro/nfvo.py

index aaa00cc..18ca8cc 100755 (executable)
--- 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
 
index b94d13b..c2f331b 100644 (file)
@@ -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(