Fix bug 732 07/7607/1
authorEduardo Sousa <eduardo.sousa@canonical.com>
Tue, 4 Jun 2019 13:10:15 +0000 (14:10 +0100)
committerEduardo Sousa <eduardo.sousa@canonical.com>
Tue, 4 Jun 2019 13:10:15 +0000 (14:10 +0100)
Change-Id: I4d50aaf644849df989963052bd94a61c64b84db5
Signed-off-by: Eduardo Sousa <eduardo.sousa@canonical.com>
osm_nbi/nbi.py
osm_nbi/resources_to_operations.yml

index a43336d..20e0520 100644 (file)
@@ -221,7 +221,7 @@ class Server(object):
                                  "<ID>": {"METHODS": ("GET", "DELETE", "PUT")}
                                  },
                     "roles": {"METHODS": ("GET", "POST"),
-                              "<ID>": {"METHODS": ("GET", "POST", "DELETE")}
+                              "<ID>": {"METHODS": ("GET", "POST", "DELETE", "PUT")}
                               },
                     "vims": {"METHODS": ("GET", "POST"),
                              "<ID>": {"METHODS": ("GET", "DELETE", "PATCH", "PUT")}
index 3a94de2..4b35d27 100644 (file)
@@ -276,6 +276,8 @@ resources_to_operations:
 
   "DELETE /admin/v1/roles/<id>": "roles:id:delete"
 
+  "PUT /admin/v1/roles/<id>": "roles:id:put"
+
 ################################################################################
 ##################################### PDUDs ####################################
 ################################################################################