X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fnbi.py;h=ba2e14eab18f43d14d827f9d4905224fa85db55b;hp=dda994657ce70761c6a79f75acd700de4cdc4c9c;hb=a8d63635eecb1c8debab5f674931a453ea39e78d;hpb=3ace63c3639a0541c5fde92b851107fb28151a99 diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index dda9946..ba2e14e 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -8,9 +8,9 @@ import yaml import html_out as html import logging from engine import Engine, EngineException -from dbbase import DbException -from fsbase import FsException -from msgbase import MsgException +from osm_common.dbbase import DbException +from osm_common.fsbase import FsException +from osm_common.msgbase import MsgException from base64 import standard_b64decode #from os import getenv from http import HTTPStatus @@ -67,6 +67,8 @@ URL: /osm GET POST /ns_lcm_op_occs 5 5 / 5 5 5 TO BE COMPLETED 5 5 + /vnfrs O + / O /subscriptions 5 5 / 5 X /admin/v1 @@ -215,7 +217,10 @@ class Server(object): }, "ns_lcm_op_occs": {"METHODS": "GET", "": {"METHODS": "GET"}, - } + }, + "vnfrs": {"METHODS": ("GET"), + "": {"METHODS": ("GET")} + }, } }, } @@ -639,6 +644,8 @@ class Server(object): engine_item = "nsrs" if item == "ns_lcm_op_occs": engine_item = "nslcmops" + if item == "vnfrs": + engine_item = "vnfrs" if engine_item == "vims": # TODO this is for backward compatibility, it will remove in the future engine_item = "vim_accounts"