+ns_heal = {
+ "title": "ns heal input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "lcmOperationType": string_schema,
+ "nsInstanceId": id_schema,
+ "timeout_ns_heal": integer1_schema,
+ "healVnfData": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "vnfInstanceId": id_schema,
+ "cause": description_schema,
+ "additionalParams": {
+ "type": "object",
+ "properties": {
+ "run-day1": bool_schema,
+ "vdu": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "run-day1": bool_schema,
+ "vdu-id": name_schema,
+ "count-index": integer0_schema,
+ },
+ "required": ["vdu-id"],
+ "additionalProperties": False,
+ },
+ },
+ },
+ "additionalProperties": False,
+ },
+ },
+ "required": ["vnfInstanceId"],
+ "additionalProperties": False,
+ },
+ },
+ },
+ "required": ["healVnfData"],
+ "additionalProperties": False,
+}
+
+ns_verticalscale = {
+ "title": "vertial scale input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "lcmOperationType": string_schema,
+ "verticalScale": string_schema,
+ "nsInstanceId": id_schema,
+ "changeVnfFlavorData": {
+ "type": "object",
+ "properties": {
+ "vnfInstanceId": id_schema,
+ "additionalParams": {
+ "type": "object",
+ "properties": {
+ "vduid": string_schema,
+ "vduCountIndex": integer0_schema,
+ "virtualMemory": integer1_schema,
+ "sizeOfStorage": integer0_schema,
+ "numVirtualCpu": integer1_schema,
+ },
+ }
+ },
+ "required": ["vnfInstanceId", "additionalParams"],
+ "additionalProperties": False,
+ }
+ },
+ "required": ["lcmOperationType", "verticalScale", "nsInstanceId"],
+ "additionalProperties": False,
+}