Feature 10910: Migration of Openstack based VM instances
[osm/RO.git] / NG-RO / osm_ng_ro / ro_main.py
index 2a2c076..30acd2b 100644 (file)
@@ -109,6 +109,16 @@ valid_url_methods = {
                     },
                 },
             },
+            "migrate": {
+                "<ID>": {
+                    "METHODS": ("POST"),
+                    "ROLE_PERMISSION": "migrate:id:",
+                    "<ID>": {
+                        "METHODS": ("GET",),
+                        "ROLE_PERMISSION": "migrate:id:id:",
+                    },
+                },
+            },
         }
     },
 }
@@ -162,6 +172,7 @@ class Server(object):
             "deploy:id:id:cancel:post": self.ns.cancel,
             "recreate:id:post": self.ns.recreate,
             "recreate:id:id:get": self.ns.recreate_status,
+            "migrate:id:post": self.ns.migrate,
         }
 
     def _format_in(self, kwargs):