Change Nova api microversion from 2.63 back to 2.1
[osm/RO.git] / NG-RO / osm_ng_ro / validation.py
index ca8cbc2..e4eed74 100644 (file)
@@ -101,6 +101,7 @@ deploy_schema = {
         },
         "image": deploy_item_list,
         "flavor": deploy_item_list,
+        "shared-volumes": deploy_item_list,
         "ns": {
             "type": "object",
             "properties": {
@@ -112,6 +113,22 @@ deploy_schema = {
     "additionalProperties": False,
 }
 
+rebuild_schema = {
+    "$schema": "http://json-schema.org/draft-04/schema#",
+    "vm_rebuild": {
+        "type": "array",
+        "items": {
+            "type": "object",
+            "properties": {
+                "vdu-id": id_schema,
+                "vim_name": name_schema,
+                "member-vnf-index": name_schema,
+            },
+        },
+        "additionalProperties": True,
+    },
+}
+
 
 class ValidationError(Exception):
     def __init__(self, message, http_code=HTTPStatus.UNPROCESSABLE_ENTITY):