X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fnbi.py;h=fcc1e04d70b01b17e7570572c2097da50d4979ae;hp=63a6eca3c282748af88f831f141a9eda6a987c7b;hb=c061f56a0218c562315f563b001a72fbdfa550c6;hpb=587aeea73f8cdf5561a451dbc87107daef6efe04;ds=sidebyside diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index 63a6eca..fcc1e04 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -211,7 +211,8 @@ class Server(object): "": {"METHODS": ("GET", "POST", "DELETE", "PATCH", "PUT")} }, "projects": {"METHODS": ("GET", "POST"), - "": {"METHODS": ("GET", "DELETE")} + # Added PUT to allow Project Name modification + "": {"METHODS": ("GET", "DELETE", "PUT")} }, "roles": {"METHODS": ("GET", "POST"), "": {"METHODS": ("GET", "POST", "DELETE")} @@ -740,7 +741,7 @@ class Server(object): elif main_topic == "nsilcm": engine_topic = "nsis" if topic == "nsi_lcm_op_occs": - engine_topic = "nsilcmops" + engine_topic = "nsilcmops" elif main_topic == "pdu": engine_topic = "pdus" if engine_topic == "vims": # TODO this is for backward compatibility, it will remove in the future @@ -800,7 +801,7 @@ class Server(object): indata["nsiInstanceId"] = _id self.engine.new_item(rollback, session, "nsilcmops", indata, kwargs) outdata = {"id": _id} - + elif topic == "netslice_instances" and item: indata["lcmOperationType"] = item indata["nsiInstanceId"] = _id