c7147a40f570cb41231afaaa70a81a45ab03c0ac
3 # Copyright 2016 RIFT.IO Inc
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
25 gi
.require_version('RwVeVnfmEm', '1.0')
26 gi
.require_version('RwTypes', '1.0')
27 from gi
.repository
import (
32 logger
= logging
.getLogger('rw_ve_vnfm_em.rest')
35 rwstatus
= rw_status
.rwstatus_from_exc_map({ IndexError: RwTypes
.RwStatus
.NOTFOUND
,
36 KeyError: RwTypes
.RwStatus
.NOTFOUND
,
37 NotImplementedError: RwTypes
.RwStatus
.NOT_IMPLEMENTED
,})
39 class RwVeVnfmEmRestPlugin(GObject
.Object
, RwVeVnfmEm
.ElementManager
):
40 """This class implements the Ve-Vnfm VALA methods."""
43 GObject
.Object
.__init
__(self
)
47 def do_init(self
, rwlog_ctx
):
48 if not any(isinstance(h
, rwlogger
.RwLogger
) for h
in logger
.handlers
):
49 logger
.addHandler(rwlogger
.RwLogger(subcategory
="rwcal-aws",
52 def do_vnf_lifecycle_event(self
):