for in_vld in get_iterable(indata.get("vld")):
for vldd in get_iterable(nsd.get("vld")):
if in_vld["name"] == vldd["name"] or in_vld["name"] == vldd["id"]:
- break
- else:
- raise EngineException("Invalid parameter vld:name='{}' is not present at nsd:vld".format(
- in_vld["name"]))
+ break
+ else:
+ raise EngineException("Invalid parameter vld:name='{}' is not present at nsd:vld".format(
+ in_vld["name"]))
def _format_new_data(self, session, item, indata):
now = time()
"orchestration-progress": {},
# {"networks": {"active": 0, "total": 0}, "vms": {"active": 0, "total": 0}},
- "crete-time": now,
+ "create-time": now,
"nsd-name-ref": nsd["name"],
"operational-events": [], # "id", "timestamp", "description", "event",
"nsd-ref": nsd["id"],
"properties": {
"id-ref": name_schema,
"ip-address": ip_schema,
+ # "mac-address": mac_schema,
},
- "required": ["id-ref", "ip-address"],
+ "required": ["id-ref"],
+ "minProperties": 2,
"additionalProperties": False
},
}
"name": string_schema,
"vim-network-name": {"OneOf": [string_schema, object_schema]},
"ip-profile": object_schema,
+ "vnfd-connection-point-ref": {
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "type": "object",
+ "properties": {
+ "member-vnf-index-ref": name_schema,
+ "vnfd-connection-point-ref": name_schema,
+ "ip-address": ip_schema,
+ # "mac-address": mac_schema,
+ },
+ "required": ["member-vnf-index-ref", "vnfd-connection-point-ref"],
+ "minProperties": 3,
+ "additionalProperties": False
+ },
+ }
},
"required": ["name"],
"additionalProperties": False