This change fixes bug 2399 that was reported in relation a multi-site
NS deployment. However, this issue could appear in multiple
circumstances, whenever there are vnf instantiation parameters and there
are no vdu params inside.
Change-Id: Id6d3c0b88a2a8478e1908372b24e3d13cdb94dcf
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
elif ns_request.get("vnf"):
vnf_data = ns_request.get("vnf")
for vnf in vnf_data:
- for vdu in vnf.get("vdu"):
+ for vdu in vnf.get("vdu", []):
if vdu.get("vim-flavor-name") and vdu.get("vim-flavor-id"):
raise EngineException(
"Instantiation parameters vim-flavor-name and vim-flavor-id are mutually exclusive"