X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=NG-RO%2Fosm_ng_ro%2Fro_main.py;h=30acd2b6100132a56f7f4db542a828346a863591;hp=2a2c076a1747db747170d7730a482690e6d78650;hb=8658c2cd33bcea66c9b99aabb0825071c5c42df0;hpb=0dd83fdc4e4dc597fd2c11c8e2b740613a1bc437 diff --git a/NG-RO/osm_ng_ro/ro_main.py b/NG-RO/osm_ng_ro/ro_main.py index 2a2c076a..30acd2b6 100644 --- a/NG-RO/osm_ng_ro/ro_main.py +++ b/NG-RO/osm_ng_ro/ro_main.py @@ -109,6 +109,16 @@ valid_url_methods = { }, }, }, + "migrate": { + "": { + "METHODS": ("POST"), + "ROLE_PERMISSION": "migrate: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):