X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=5c755221e6b897c4ca0c3934c9e8e292e1e879d5;hp=4db456a2d397a2e3da7eacc69f3af20ab549f625;hb=eab1507cb7a80d8881fcee6ba95ee318b6b035d3;hpb=a9a1fc8427db17f47ea7ff782e35d24be4094f95 diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 4db456a..5c75522 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -440,6 +440,39 @@ ns_terminate = { "additionalProperties": False, } +ns_update = { + "title": "ns update input schema", + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "lcmOperationType": string_schema, + "nsInstanceId": id_schema, + "timeout_ns_update": integer1_schema, + "updateType": { + "enum": ["CHANGE_VNFPKG", "REMOVE_VNF", "MODIFY_VNF_INFORMATION"] + }, + "modifyVnfInfoData": { + "type": "object", + "properties": { + "vnfInstanceId": id_schema, + "vnfdId": id_schema, + }, + "required": ["vnfInstanceId", "vnfdId"], + }, + "removeVnfInstanceId": id_schema, + "changeVnfPackageData": { + "type": "object", + "properties": { + "vnfInstanceId": id_schema, + "vnfdId": id_schema, + }, + "required": ["vnfInstanceId", "vnfdId"], + }, + }, + "required": ["updateType"], + "additionalProperties": False, +} + ns_action = { # TODO for the moment it is only contemplated the vnfd primitive execution "title": "ns action input schema", "$schema": "http://json-schema.org/draft-04/schema#", @@ -516,6 +549,7 @@ vim_account_edit_schema = { "vim_password": passwd_schema, "vca": id_schema, "config": {"type": "object"}, + "prometheus-config": {"type": "object"}, }, "additionalProperties": False, } @@ -540,6 +574,7 @@ vim_account_new_schema = { "vim_password": passwd_schema, "vca": id_schema, "config": {"type": "object"}, + "prometheus-config": {"type": "object"}, }, "required": [ "name", @@ -1046,6 +1081,7 @@ nbi_new_input_schemas = { "ns_instantiate": ns_instantiate, "ns_action": ns_action, "ns_scale": ns_scale, + "ns_update": ns_update, "pdus": pdu_new_schema, }