"properties": {
"member-vnf-index": name_schema,
"additionalParams": object_schema,
+ "additionalParamsForVdu": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "vdu_id": name_schema,
+ "additionalParams": object_schema,
+ },
+ "required": ["vdu_id", "additionalParams"],
+ "additionalProperties": False,
+ },
+ },
+ "additionalParamsForKdu": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "kdu_name": name_schema,
+ "additionalParams": object_schema,
+ },
+ "required": ["kdu_name", "additionalParams"],
+ "additionalProperties": False,
+ },
+ },
},
- "required": ["member-vnf-index", "additionalParams"],
+ "required": ["member-vnf-index"],
+ "minProperties": 2,
"additionalProperties": False
}
-
}
ns_instantiate = {
schema_version = {"type": "string", "enum": ["1.0"]}
schema_type = {"type": "string"}
-vim_type = {"enum": ["openstack", "openvim", "vmware", "opennebula", "aws", "azure", "fos"]}
+vim_type = shortname_schema # {"enum": ["openstack", "openvim", "vmware", "opennebula", "aws", "azure", "fos"]}
vim_account_edit_schema = {
"title": "vim_account edit input schema",
"additionalProperties": False
}
-wim_type = {"enum": ["tapi", "onos", "odl", "dynpac", "fake"]}
+wim_type = shortname_schema # {"enum": ["tapi", "onos", "odl", "dynpac", "fake"]}
wim_account_edit_schema = {
"title": "wim_account edit input schema",
}
# K8s Repos
-k8srepo_types = {"enum": ["chart", "bundle"]}
+k8srepo_types = {"enum": ["helm-chart", "juju-bundle"]}
k8srepo_properties = {
"name": name_schema,
"description": description_schema,