tacker.extensions.vnfm module¶
- exception tacker.extensions.vnfm.CNFCreateWaitFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'CNF Create Failed with reason: %(reason)s'¶
- exception tacker.extensions.vnfm.CNFHealFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = '%(reason)s'¶
- exception tacker.extensions.vnfm.CNFHealWaitFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = '%(reason)s'¶
- exception tacker.extensions.vnfm.CNFScaleFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'CNF Scale Failed with reason: %(reason)s'¶
- exception tacker.extensions.vnfm.CNFScaleWaitFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'CNF Scale Wait Failed with reason: %(reason)s'¶
- exception tacker.extensions.vnfm.CnfDefinitionNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = 'CNF definition file with path %(path)s is not found in vnf_artifacts.'¶
- exception tacker.extensions.vnfm.HeatClientException(message=None, **kwargs)¶
Bases:
TackerException
- message = '%(msg)s'¶
- exception tacker.extensions.vnfm.HeatTranslatorFailed(message=None, **kwargs)¶
Bases:
InvalidInput
- message = 'heat-translator failed: - %(error_msg_details)s'¶
- exception tacker.extensions.vnfm.HelmClientMissingParamsError(message=None, **kwargs)¶
Bases:
TackerException
- message = 'The specified value %(value)s was not found.'¶
- exception tacker.extensions.vnfm.HelmClientOtherError(message=None, **kwargs)¶
Bases:
TackerException
- message = 'An error occurred in HelmClient: %(error_message)s.'¶
- exception tacker.extensions.vnfm.HelmClientRemoteCommandError(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Failed to execute remote command.'¶
- exception tacker.extensions.vnfm.InfraDriverUnreachable(message=None, **kwargs)¶
Bases:
ServiceUnavailable
- message = 'Could not retrieve VNF resource IDs and types. Please check %(service)s status.'¶
- exception tacker.extensions.vnfm.InvalidInstReqInfoForScaling(message=None, **kwargs)¶
Bases:
InvalidInput
- message = 'Scaling resource cannot be set to fixed ip_address or mac_address.'¶
- exception tacker.extensions.vnfm.InvalidParamsForSM(message=None, **kwargs)¶
Bases:
InvalidInput
- message = 'Please provide parameters for substitution mappings'¶
- exception tacker.extensions.vnfm.InvalidSubstitutionMapping(message=None, **kwargs)¶
Bases:
InvalidInput
- message = '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.InvalidVimConnectionInfo(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Invalid vim_connection_info: %(reason)s'¶
- exception tacker.extensions.vnfm.LCMUserDataFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'LCM user data %(reason)s'¶
- exception tacker.extensions.vnfm.OIDCAuthFailed(message=None, **kwargs)¶
Bases:
InvalidInput
- message = 'OIDC authentication and authorization failed. Detail: %(detail)s'¶
- exception tacker.extensions.vnfm.ParamYAMLNotWellFormed(message=None, **kwargs)¶
Bases:
InvalidInput
- message = 'Parameter YAML not well formed - %(error_msg_details)s'¶
- exception tacker.extensions.vnfm.SMRequirementMissing(message=None, **kwargs)¶
Bases:
InvalidInput
- message = 'All the requirements for substitution_mappings are not provided. Missing requirement for %(requirement)s'¶
- exception tacker.extensions.vnfm.ServiceTypeNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = 'service type %(service_type_id)s could not be found'¶
- exception tacker.extensions.vnfm.ToscaParserFailed(message=None, **kwargs)¶
Bases:
InvalidInput
- message = 'tosca-parser failed: - %(error_msg_details)s'¶
- exception tacker.extensions.vnfm.VNFChangeExtConnWaitFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'VNF ChangeExtConn %(reason)s'¶
- exception tacker.extensions.vnfm.VNFCreateWaitFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'VNF Create %(reason)s'¶
- exception tacker.extensions.vnfm.VNFDNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = 'VNFD %(vnfd_id)s could not be found'¶
- exception tacker.extensions.vnfm.VNFDeleteFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = '%(reason)s'¶
- exception tacker.extensions.vnfm.VNFDeleteWaitFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'VNF Delete %(reason)s'¶
- exception tacker.extensions.vnfm.VNFHealWaitFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'VNF Heal %(reason)s'¶
- exception tacker.extensions.vnfm.VNFInUse(message=None, **kwargs)¶
Bases:
InUse
- message = 'VNF %(vnf_id)s is still in use'¶
- class tacker.extensions.vnfm.VNFMPluginBase¶
Bases:
NFVPluginBase
- 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_vnf(context, vnf_id, fields=None)¶
- abstract get_vnfd(context, vnfd_id, fields=None)¶
- abstract get_vnfs(context, filters=None, fields=None)¶
- exception tacker.extensions.vnfm.VNFNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = 'VNF %(vnf_id)s could not be found'¶
- exception tacker.extensions.vnfm.VNFScaleWaitFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = '%(reason)s'¶
- exception tacker.extensions.vnfm.VNFUpdateInvalidInput(message=None, **kwargs)¶
Bases:
TackerException
- message = 'VNF Update Invalid Input %(reason)s'¶
- exception tacker.extensions.vnfm.VNFUpdateWaitFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'VNF Update %(reason)s'¶
- class tacker.extensions.vnfm.Vnfm¶
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.
- 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.