nfv/nfv/nfv-vim/nfv_vim/nfvi/_nfvi_guest_plugin.py
Al Bailey 65a8eca8e1 Clean up imports based on flake8
A number of changes were done to the imports in the files.
 - Clean up flake8 H301 multiple imports per line
 - Remove noqa from top of files, allowing flake8 to run
on all files.
 - Clean up relative imports in most places. This will
simplify python3 support later.
 - Partially sort the imports. A later commit will
enable that check since doing that here would have made
the changeset even bigger.

Story: 2003499
Task: 26561
Change-Id: Id5f95559f0d4604f4db1a1d74098063fd510142c
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2018-09-20 16:43:28 -05:00

29 lines
896 B
Python
Executable File

#
# Copyright (c) 2015-2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from nfv_common import debug
from nfv_common import tasks
from nfv_vim.nfvi._nfvi_plugin import NFVIPlugin
DLOG = debug.debug_get_logger('nfv_vim.nfvi.nfvi_guest_plugin')
class NFVIGuestPlugin(NFVIPlugin):
"""
NFVI Guest Plugin
"""
_version = '1.0.0'
_signature = '22b3dbf6-e4ba-441b-8797-fb8a51210a43'
_plugin_type = 'guest_plugin'
def __init__(self, namespace, pool):
scheduler = tasks.TaskScheduler('guest-plugin', pool)
super(NFVIGuestPlugin, self).__init__(namespace,
NFVIGuestPlugin._version,
NFVIGuestPlugin._signature,
NFVIGuestPlugin._plugin_type,
scheduler)