X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fnbi.py;h=0a4c4027ef1165a81bbeb0f89549c915c3c102c9;hp=fa2f0432b2c6838fc0a16afc8f3e60a5e611a571;hb=cb83c941ebdf6a8807ffe3b1c3346c61e085b0bf;hpb=56e698aea30098e7cfc0c5e3df9e771a4dd47f64 diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index fa2f043..0a4c402 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -75,6 +75,9 @@ URL: /osm GET POST / O /subscriptions 5 5 / 5 X + /pdu/v1 + /pdu_descriptor O O + / O O O O /admin/v1 /tokens O O / O O @@ -172,6 +175,13 @@ class Server(object): }, } }, + "pdu": { + "v1": { + "pdu_descriptors": {"METHODS": ("GET", "POST"), + "": {"METHODS": ("GET", "POST", "DELETE", "PATCH", "PUT")} + }, + } + }, "nsd": { "v1": { "ns_descriptors_content": {"METHODS": ("GET", "POST"), @@ -624,6 +634,8 @@ class Server(object): engine_item = "nslcmops" if item == "vnfrs" or item == "vnf_instances": engine_item = "vnfrs" + elif topic == "pdu": + engine_item = "pdus" if engine_item == "vims": # TODO this is for backward compatibility, it will remove in the future engine_item = "vim_accounts"