tacker.extensions.nfvo module

class tacker.extensions.nfvo.NFVOPluginBase

Bases: NFVPluginBase

abstract create_vim(context, vim)
abstract delete_vim(context, vim_id)
get_default_vim(context)
get_plugin_description()

Return string description of the plugin.

get_plugin_name()

Return a symbolic name for the plugin.

Each service plugin should have a symbolic name. This name will be used, for instance, by service definitions in service types

get_plugin_type()

Return one of predefined service types.

See tacker/plugins/common/constants.py

abstract get_vim(context, vim_id, fields=None, mask_password=True)
abstract get_vims(context, filters=None, fields=None)
abstract update_vim(context, vim_id, vim)
class tacker.extensions.nfvo.Nfvo

Bases: ExtensionDescriptor

classmethod get_alias()

The alias for the extension.

e.g. ‘FOXNSOX’

classmethod get_description()

Friendly description for the extension.

e.g. ‘The Fox In Socks Extension’

get_extended_resources(version)

Retrieve extended resources or attributes for core resources.

Extended attributes are implemented by a core plugin similarly to the attributes defined in the core, and can appear in request and response messages. Their names are scoped with the extension’s prefix. The core API version is passed to this function, which must return a map[<resource_name>][<attribute_name>][<attribute_property>] specifying the extended resource attribute properties required by that API version.

Extension can add resources and their attr definitions too. The returned map can be integrated into RESOURCE_ATTRIBUTE_MAP.

classmethod get_name()

The name of the extension.

e.g. ‘Fox In Socks’

classmethod get_namespace()

The XML namespace for the extension.

e.g. ‘http://www.fox.in.socks/api/ext/pie/v1.0

classmethod get_plugin_interface()

Returns an abstract class which defines contract for the plugin.

The abstract class should inherit from extesnions.PluginInterface, Methods in this abstract class should be decorated as abstractmethod

classmethod get_resources()

List of extensions.ResourceExtension extension objects.

Resources define new nouns, and are accessible through URLs.

classmethod get_updated()

The timestamp when the extension was last updated.

e.g. ‘2011-01-22T13:25:27-06:00’

update_attributes_map(attributes)

Update attributes map for this extension.

This is default method for extending an extension’s attributes map. An extension can use this method and supplying its own resource attribute map in extension_attrs_map argument to extend all its attributes that needs to be extended.

If an extension does not implement update_attributes_map, the method does nothing and just return.

exception tacker.extensions.nfvo.VimConnectionException(message=None, **kwargs)

Bases: TackerException

message = '%(message)s'
exception tacker.extensions.nfvo.VimDefaultDuplicateException(message=None, **kwargs)

Bases: TackerException

message = 'Default VIM already exists %(vim_id)s.'
exception tacker.extensions.nfvo.VimDefaultNotDefined(message=None, **kwargs)

Bases: TackerException

message = 'Default VIM is not defined.'
exception tacker.extensions.nfvo.VimEncryptKeyError(message=None, **kwargs)

Bases: TackerException

message = 'Barbican must be enabled for VIM %(vim_id)s'
exception tacker.extensions.nfvo.VimFromVnfNotFoundException(message=None, **kwargs)

Bases: NotFound

message = 'VIM from VNF %(vnf_id)s could not be found'
exception tacker.extensions.nfvo.VimGetResourceException(message=None, **kwargs)

Bases: TackerException

message = 'Error while trying to issue %(cmd)s to find resource type %(type)s by resource name %(name)s'
exception tacker.extensions.nfvo.VimGetResourceNameNotUnique(message=None, **kwargs)

Bases: TackerException

message = 'Getting resource id from VIM with resource name %(name)s by %(cmd)s returns more than one'
exception tacker.extensions.nfvo.VimGetResourceNotFoundException(message=None, **kwargs)

Bases: TackerException

message = 'Getting resource id from VIM with resource name %(name)s by %(cmd)s returns nothing'
exception tacker.extensions.nfvo.VimInUseException(message=None, **kwargs)

Bases: TackerException

message = 'VIM %(vim_id)s is still in use by VNF'
exception tacker.extensions.nfvo.VimKeyNotFoundException(message=None, **kwargs)

Bases: TackerException

message = 'Unable to find key file for VIM %(vim_id)s'
exception tacker.extensions.nfvo.VimNotFoundException(message=None, **kwargs)

Bases: TackerException

message = 'Specified VIM id %(vim_id)s is invalid. Please verify and pass a valid VIM id'
exception tacker.extensions.nfvo.VimRegionNotFoundException(message=None, **kwargs)

Bases: TackerException

message = 'Unknown VIM region name %(region_name)s'
exception tacker.extensions.nfvo.VimUnauthorizedException(message=None, **kwargs)

Bases: TackerException

message = '%(message)s'
exception tacker.extensions.nfvo.VimUnsupportedResourceTypeException(message=None, **kwargs)

Bases: TackerException

message = 'Resource type %(type)s is unsupported by VIM'