Bugfix 1550: Setting a custom release name for Helm based kdus
[osm/NBI.git] / osm_nbi / validation.py
index beea575..de8f913 100644 (file)
@@ -261,6 +261,7 @@ additional_params_for_vnf = {
                         "kdu_model": name_schema,
                         "k8s-namespace": name_schema,
                         "config-units": integer1_schema,    # number of configuration units of this knf, by default 1
+                        "kdu-deployment-name": name_schema,
                     },
                     "required": ["kdu_name"],
                     "minProperties": 2,
@@ -286,7 +287,7 @@ ns_instantiate = {
         "nsDescription": {"oneOf": [description_schema, null_schema]},
         "nsdId": id_schema,
         "vimAccountId": id_schema,
-        "wimAccountId": {"OneOf": [id_schema, bool_schema, null_schema]},
+        "wimAccountId": {"oneOf": [id_schema, bool_schema, null_schema]},
         "placement-engine": string_schema,
         "placement-constraints": object_schema,
         "additionalParamsForNs": object_schema,
@@ -328,10 +329,10 @@ ns_instantiate = {
                 "type": "object",
                 "properties": {
                     "name": string_schema,
-                    "vim-network-name": {"OneOf": [string_schema, object_schema]},
-                    "vim-network-id": {"OneOf": [string_schema, object_schema]},
+                    "vim-network-name": {"oneOf": [string_schema, object_schema]},
+                    "vim-network-id": {"oneOf": [string_schema, object_schema]},
                     "ns-net": object_schema,
-                    "wimAccountId": {"OneOf": [id_schema, bool_schema, null_schema]},
+                    "wimAccountId": {"oneOf": [id_schema, bool_schema, null_schema]},
                     "ip-profile": object_schema,
                     "provider-network": provider_network_schema,
                     "vnfd-connection-point-ref": {
@@ -938,8 +939,8 @@ nsi_vld_instantiate = {
     "type": "object",
     "properties": {
         "name": string_schema,
-        "vim-network-name": {"OneOf": [string_schema, object_schema]},
-        "vim-network-id": {"OneOf": [string_schema, object_schema]},
+        "vim-network-name": {"oneOf": [string_schema, object_schema]},
+        "vim-network-id": {"oneOf": [string_schema, object_schema]},
         "ip-profile": object_schema,
     },
     "required": ["name"],