fixed error at vnf parsing internal vld
Change-Id: I7f46b390e5c5990baeaa7d839916adea9ec973ca
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
diff --git a/openmanod b/openmanod
index aaa00cc..18ca8cc 100755
--- a/openmanod
+++ b/openmanod
@@ -48,7 +48,7 @@
__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 b94d13b..c2f331b 100644
--- a/osm_ro/nfvo.py
+++ b/osm_ro/nfvo.py
@@ -916,7 +916,7 @@
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(