X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=RO-plugin%2Fosm_ro_plugin%2Fvimconn.py;h=d0162cc84102955302d49ada896d26d2831814a3;hb=80d2437283d10ae28885638e2940aa58721643fe;hp=f526aef14cdd4ef8b4cb12f40d715f56ace8b292;hpb=8bf973076f9d3ea92a4cec0720953c6e88a0a8ee;p=osm%2FRO.git diff --git a/RO-plugin/osm_ro_plugin/vimconn.py b/RO-plugin/osm_ro_plugin/vimconn.py index f526aef1..d0162cc8 100644 --- a/RO-plugin/osm_ro_plugin/vimconn.py +++ b/RO-plugin/osm_ro_plugin/vimconn.py @@ -123,12 +123,19 @@ class VimConnNotSupportedException(VimConnException): class VimConnNotImplemented(VimConnException): - """The method is not implemented by the connected""" + """The method is not implemented by the connector""" def __init__(self, message, http_code=HTTP_Not_Implemented): VimConnException.__init__(self, message, http_code) +class VimConnInsufficientCredentials(VimConnException): + """The VIM account does not have efficient permissions to perform the requested operation.""" + + def __init__(self, message, http_code=HTTP_Unauthorized): + VimConnException.__init__(self, message, http_code) + + class VimConnector: """Abstract base class for all the VIM connector plugins These plugins must implement a VimConnector class derived from this