fixed error at vnf parsing internal vld
Change-Id: I7f46b390e5c5990baeaa7d839916adea9ec973ca
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
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(