VNFs with only VLDs compatibility
Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py
index 5d9705b..ae4417a 100644
--- a/osm_nbi/instance_topics.py
+++ b/osm_nbi/instance_topics.py
@@ -169,7 +169,7 @@
# vim-id # TODO it would be nice having a vim port id
}
vnfr_descriptor["connection-point"].append(vnf_cp)
- for vdu in vnfd["vdu"]:
+ for vdu in vnfd.get("vdu", ()):
vdur = {
"vdu-id-ref": vdu["id"],
# TODO "name": "" Name of the VDU in the VIM