From: tierno Date: Wed, 29 Apr 2020 13:46:13 +0000 (+0000) Subject: Feature 8720: instantiate parameters config-units X-Git-Tag: v7.1.0rc1~5 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=f62ac6a0f3e7f327c4961928dfefaa9f7d4438f5;p=osm%2FNBI.git Feature 8720: instantiate parameters config-units Change-Id: I35b93777bd6fbd7eb45f4a802da01a1453ab2ab0 Signed-off-by: tierno --- diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 7c074d2..11e9ce4 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -236,6 +236,7 @@ additional_params_for_vnf = { "member-vnf-index": name_schema, "additionalParams": object_schema, "k8s-namespace": name_schema, + "config-units": integer1_schema, # number of configuration units of this vnf, by default 1 "additionalParamsForVdu": { "type": "array", "items": { @@ -243,8 +244,10 @@ additional_params_for_vnf = { "properties": { "vdu_id": name_schema, "additionalParams": object_schema, + "config-units": integer1_schema, # number of configuration units of this vdu, by default 1 }, - "required": ["vdu_id", "additionalParams"], + "required": ["vdu_id"], + "minProperties": 2, "additionalProperties": False, }, }, @@ -257,6 +260,7 @@ additional_params_for_vnf = { "additionalParams": object_schema, "kdu_model": name_schema, "k8s-namespace": name_schema, + "config-units": integer1_schema, # number of configuration units of this knf, by default 1 }, "required": ["kdu_name"], "minProperties": 2, @@ -287,6 +291,7 @@ ns_instantiate = { "placement-constraints": object_schema, "additionalParamsForNs": object_schema, "additionalParamsForVnf": additional_params_for_vnf, + "config-units": integer1_schema, # number of configuration units of this ns, by default 1 "k8s-namespace": name_schema, "ssh_keys": {"type": "array", "items": {"type": "string"}}, "timeout_ns_deploy": integer1_schema,