Change-Id: I6a5b2ee56d8ac2383d846ed2fedc1aec37b9d798
Signed-off-by: David Garcia <david.garcia@canonical.com>
for cp in vnfd.get("ext-cpd", ()):
vnf_cp = {
"name": cp.get("id"),
- "connection-point-id": cp.get("int-cpd").get("cpd"),
- "connection-point-vdu-id": cp.get("int-cpd").get("vdu-id"),
+ "connection-point-id": cp.get("int-cpd", {}).get("cpd"),
+ "connection-point-vdu-id": cp.get("int-cpd", {}).get("vdu-id"),
"id": cp.get("id"),
# "ip-address", "mac-address" # filled by LCM
# vim-id # TODO it would be nice having a vim port id