tacker.extensions.vnfm module

tacker.extensions.vnfm module

exception tacker.extensions.vnfm.CpuAllocationInvalidKeys(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Invalid keys specified in VNFD - %(error_msg_details)s.Supported keys are: %(valid_keys)s'
exception tacker.extensions.vnfm.CpuAllocationInvalidValues(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Invalid values specified in VNFD - %(error_msg_details)s.Supported Values are: %(valid_values)s'
exception tacker.extensions.vnfm.FilePathMissing(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u"'file' attribute is missing for tosca.artifacts.Deployment.Image.VM artifact type"
exception tacker.extensions.vnfm.HeatClientException(**kwargs)

Bases: tacker.common.exceptions.TackerException

message = u'%(msg)s'
exception tacker.extensions.vnfm.HeatTranslatorFailed(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'heat-translator failed: - %(error_msg_details)s'
exception tacker.extensions.vnfm.HugePageSizeInvalidInput(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u"Value specified for mem_page_size is invalid: %(error_msg_details)s. The valid values are 'small', 'large', 'any' or an integer value in MB"
exception tacker.extensions.vnfm.IPAddrInvalidInput(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'IP Address input values should be in a list format'
exception tacker.extensions.vnfm.InfraDriverUnreachable(**kwargs)

Bases: tacker.common.exceptions.ServiceUnavailable

message = u'Could not retrieve VNF resource IDs and types. Please check %(service)s status.'
exception tacker.extensions.vnfm.InvalidAPIAttributeType(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Expecting dict type for API attribute instead of %(atype)s '
exception tacker.extensions.vnfm.InvalidInfraDriver(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'VIM type %(vim_name)s is not supported as an infra driver'
exception tacker.extensions.vnfm.InvalidKubernetesInputParameter(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Found unsupported keys for %(found_keys)s '
exception tacker.extensions.vnfm.InvalidKubernetesNetworkNumber(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Please provide one network for all vdus'
exception tacker.extensions.vnfm.InvalidKubernetesScalingPolicyNumber(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Please provide only one Scaling policy'
exception tacker.extensions.vnfm.InvalidMgmtDriver(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Invalid Mgmt driver %(mgmt_driver_name)s.'
exception tacker.extensions.vnfm.InvalidParamsForSM(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Please provide parameters for substitution mappings'
exception tacker.extensions.vnfm.InvalidResourceType(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Resource type %(resource_type)s for alarm policy is not supported'
exception tacker.extensions.vnfm.InvalidServiceType(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'invalid service type %(service_type)s'
exception tacker.extensions.vnfm.InvalidSubstitutionMapping(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Input for substitution mapping requirements are not valid for %(requirement)s. They must be in the form of list with two entries'
exception tacker.extensions.vnfm.MetadataNotMatched(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Metadata for alarm policy is not matched'
exception tacker.extensions.vnfm.MultipleMGMTDriversSpecified(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'More than one MGMT Driver per vnfd is not supported'
exception tacker.extensions.vnfm.NumaNodesInvalidKeys(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Invalid keys specified in VNFD - %(error_msg_details)s.Supported keys are: %(valid_keys)s'
exception tacker.extensions.vnfm.ParamYAMLNotWellFormed(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'Parameter YAML not well formed - %(error_msg_details)s'
exception tacker.extensions.vnfm.SMRequirementMissing(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'All the requirements for substitution_mappings are not provided. Missing requirement for %(requirement)s'
exception tacker.extensions.vnfm.ServiceTypeNotFound(**kwargs)

Bases: tacker.common.exceptions.NotFound

message = u'service type %(service_type_id)s could not be found'
exception tacker.extensions.vnfm.ServiceTypesNotSpecified(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'service types are not specified'
exception tacker.extensions.vnfm.ToscaParserFailed(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'tosca-parser failed: - %(error_msg_details)s'
exception tacker.extensions.vnfm.VNFCreateFailed(**kwargs)

Bases: tacker.common.exceptions.TackerException

message = u'creating VNF based on %(vnfd_id)s failed'
exception tacker.extensions.vnfm.VNFCreateWaitFailed(**kwargs)

Bases: tacker.common.exceptions.TackerException

message = u'%(reason)s'
exception tacker.extensions.vnfm.VNFDInUse(**kwargs)

Bases: tacker.common.exceptions.InUse

message = u'VNFD %(vnfd_id)s is still in use'
exception tacker.extensions.vnfm.VNFDNotFound(**kwargs)

Bases: tacker.common.exceptions.NotFound

message = u'VNFD %(vnfd_id)s could not be found'
exception tacker.extensions.vnfm.VNFDeleteFailed(**kwargs)

Bases: tacker.common.exceptions.TackerException

message = u'%(reason)s'
exception tacker.extensions.vnfm.VNFDeleteWaitFailed(**kwargs)

Bases: tacker.common.exceptions.TackerException

message = u'%(reason)s'
exception tacker.extensions.vnfm.VNFHealFailed(**kwargs)

Bases: tacker.common.exceptions.TackerException

message = u'VNF %(vnf_id)s failed to heal'
exception tacker.extensions.vnfm.VNFInUse(**kwargs)

Bases: tacker.common.exceptions.InUse

message = u'VNF %(vnf_id)s is still in use'
exception tacker.extensions.vnfm.VNFInactive(**kwargs)

Bases: tacker.common.exceptions.InvalidInput

message = u'VNF %(vnf_id)s is not in Active state: %(message)s'
class tacker.extensions.vnfm.VNFMPluginBase

Bases: tacker.services.service_base.NFVPluginBase

create_vnf(context, vnf)
create_vnf_scale(context, vnf_id, scale)
create_vnf_trigger(context, vnf_id, trigger)
create_vnfd(context, vnfd)
delete_vnf(context, vnf_id)
delete_vnfd(context, vnfd_id)
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

get_vnf(context, vnf_id, fields=None)
get_vnf_resources(context, vnf_id, fields=None, filters=None)
get_vnfd(context, vnfd_id, fields=None)
get_vnfds(context, filters=None, fields=None)
get_vnfs(context, filters=None, fields=None)
update_vnf(context, vnf_id, vnf)
exception tacker.extensions.vnfm.VNFNotFound(**kwargs)

Bases: tacker.common.exceptions.NotFound

message = u'VNF %(vnf_id)s could not be found'
exception tacker.extensions.vnfm.VNFScaleWaitFailed(**kwargs)

Bases: tacker.common.exceptions.TackerException

message = u'%(reason)s'
exception tacker.extensions.vnfm.VNFUpdateWaitFailed(**kwargs)

Bases: tacker.common.exceptions.TackerException

message = u'%(reason)s'
class tacker.extensions.vnfm.Vnfm

Bases: tacker.api.extensions.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.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.