def _check_scale_ns_operation(self, indata, nsr):
vnfd = self._get_vnfd_from_vnf_member_index(indata["scaleVnfData"]["scaleByStepData"]["member-vnf-index"],
nsr["_id"])
- for scaling_group in get_iterable(vnfd.get("scaling-group-descriptor")):
- if indata["scaleVnfData"]["scaleByStepData"]["scaling-group-descriptor"] == scaling_group["name"]:
+ for scaling_aspect in get_iterable(vnfd.get("df", ())[0]["scaling-aspect"]):
+ if indata["scaleVnfData"]["scaleByStepData"]["scaling-group-descriptor"] == scaling_aspect["id"]:
break
else:
raise EngineException("Invalid scaleVnfData:scaleByStepData:scaling-group-descriptor '{}' is not "
- "present at vnfd:scaling-group-descriptor"
+ "present at vnfd:scaling-aspect"
.format(indata["scaleVnfData"]["scaleByStepData"]["scaling-group-descriptor"]))
def _check_instantiate_ns_operation(self, indata, nsr, session):