tacker.extensions.vnfm module¶
-
exception
tacker.extensions.vnfm.
CNFCreateWaitFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'CNF Create Failed with reason: %(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
CNFHealFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= '%(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
CNFHealWaitFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= '%(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
CNFScaleFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'CNF Scale Failed with reason: %(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
CNFScaleWaitFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'CNF Scale Wait Failed with reason: %(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
CnfDefinitionNotFound
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.NotFound
-
message
= 'CNF definition file with path %(path)s is not found in vnf_artifacts.'¶
-
-
exception
tacker.extensions.vnfm.
CpuAllocationInvalidKeys
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Invalid keys specified in VNFD - %(error_msg_details)s.Supported keys are: %(valid_keys)s'¶
-
-
exception
tacker.extensions.vnfm.
CpuAllocationInvalidValues
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Invalid values specified in VNFD - %(error_msg_details)s.Supported Values are: %(valid_values)s'¶
-
-
exception
tacker.extensions.vnfm.
FilePathMissing
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= "'file' attribute is missing for tosca.artifacts.Deployment.Image.VM artifact type"¶
-
-
exception
tacker.extensions.vnfm.
HeatClientException
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= '%(msg)s'¶
-
-
exception
tacker.extensions.vnfm.
HeatTranslatorFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'heat-translator failed: - %(error_msg_details)s'¶
-
-
exception
tacker.extensions.vnfm.
HelmClientMissingParamsError
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'The specified value %(value)s was not found.'¶
-
-
exception
tacker.extensions.vnfm.
HelmClientOtherError
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'An error occurred in HelmClient: %(error_message)s.'¶
-
-
exception
tacker.extensions.vnfm.
HelmClientRemoteCommandError
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'Failed to execute remote command.'¶
-
-
exception
tacker.extensions.vnfm.
HugePageSizeInvalidInput
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= "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
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'IP Address input values should be in a list format'¶
-
-
exception
tacker.extensions.vnfm.
InfraDriverUnreachable
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.ServiceUnavailable
-
message
= 'Could not retrieve VNF resource IDs and types. Please check %(service)s status.'¶
-
-
exception
tacker.extensions.vnfm.
InvalidAPIAttributeType
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Expecting dict type for API attribute instead of %(atype)s '¶
-
-
exception
tacker.extensions.vnfm.
InvalidInfraDriver
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'VIM type %(vim_name)s is not supported as an infra driver'¶
-
-
exception
tacker.extensions.vnfm.
InvalidInstReqInfoForScaling
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Scaling resource cannot be set to fixed ip_address or mac_address.'¶
-
-
exception
tacker.extensions.vnfm.
InvalidKubernetesInputParameter
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Found unsupported keys for %(found_keys)s '¶
-
-
exception
tacker.extensions.vnfm.
InvalidKubernetesNetworkNumber
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Please provide one network for all vdus'¶
-
-
exception
tacker.extensions.vnfm.
InvalidKubernetesScalingPolicyNumber
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Please provide only one Scaling policy'¶
-
-
exception
tacker.extensions.vnfm.
InvalidMaintenanceParameter
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Could not find the required params for maintenance'¶
-
-
exception
tacker.extensions.vnfm.
InvalidMgmtDriver
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Invalid Mgmt driver %(mgmt_driver_name)s.'¶
-
-
exception
tacker.extensions.vnfm.
InvalidParamsForSM
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Please provide parameters for substitution mappings'¶
-
-
exception
tacker.extensions.vnfm.
InvalidResourceType
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Resource type %(resource_type)s for alarm policy is not supported'¶
-
-
exception
tacker.extensions.vnfm.
InvalidSubstitutionMapping
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.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:
tacker.common.exceptions.TackerException
-
message
= 'Invalid vim_connection_info: %(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
LCMUserDataFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'LCM user data %(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
MetadataNotMatched
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Metadata for alarm policy is not matched'¶
-
-
exception
tacker.extensions.vnfm.
MultipleMGMTDriversSpecified
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'More than one MGMT Driver per vnfd is not supported'¶
-
-
exception
tacker.extensions.vnfm.
NumaNodesInvalidKeys
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Invalid keys specified in VNFD - %(error_msg_details)s.Supported keys are: %(valid_keys)s'¶
-
-
exception
tacker.extensions.vnfm.
ParamYAMLNotWellFormed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'Parameter YAML not well formed - %(error_msg_details)s'¶
-
-
exception
tacker.extensions.vnfm.
SMRequirementMissing
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.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:
tacker.common.exceptions.NotFound
-
message
= 'service type %(service_type_id)s could not be found'¶
-
-
exception
tacker.extensions.vnfm.
ServiceTypesNotSpecified
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'service types are not specified'¶
-
-
exception
tacker.extensions.vnfm.
ToscaParserFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'tosca-parser failed: - %(error_msg_details)s'¶
-
-
exception
tacker.extensions.vnfm.
VNFChangeExtConnWaitFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'VNF ChangeExtConn %(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
VNFCreateFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'creating VNF based on %(vnfd_id)s failed'¶
-
-
exception
tacker.extensions.vnfm.
VNFCreateWaitFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'VNF Create %(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
VNFDInUse
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InUse
-
message
= 'VNFD %(vnfd_id)s is still in use'¶
-
-
exception
tacker.extensions.vnfm.
VNFDNotFound
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.NotFound
-
message
= 'VNFD %(vnfd_id)s could not be found'¶
-
-
exception
tacker.extensions.vnfm.
VNFDeleteFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= '%(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
VNFDeleteWaitFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'VNF Delete %(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
VNFHealFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'VNF %(vnf_id)s failed to heal'¶
-
-
exception
tacker.extensions.vnfm.
VNFHealWaitFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'VNF Heal %(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
VNFInUse
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InUse
-
message
= 'VNF %(vnf_id)s is still in use'¶
-
-
exception
tacker.extensions.vnfm.
VNFInactive
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.InvalidInput
-
message
= 'VNF %(vnf_id)s is not in Active state: %(message)s'¶
-
-
class
tacker.extensions.vnfm.
VNFMPluginBase
¶ Bases:
tacker.services.service_base.NFVPluginBase
-
abstract
create_vnf
(context, vnf)¶
-
abstract
create_vnf_maintenance
(context, vnf_id, maintenance)¶
-
abstract
create_vnf_scale
(context, vnf_id, scale)¶
-
abstract
create_vnf_trigger
(context, vnf_id, trigger)¶
-
abstract
create_vnfd
(context, vnfd)¶
-
abstract
delete_vnf
(context, vnf_id)¶
-
abstract
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
-
abstract
get_vnf
(context, vnf_id, fields=None)¶
-
abstract
get_vnf_resources
(context, vnf_id, fields=None, filters=None)¶
-
abstract
get_vnfd
(context, vnfd_id, fields=None)¶
-
abstract
get_vnfds
(context, filters=None, fields=None)¶
-
abstract
get_vnfs
(context, filters=None, fields=None)¶
-
abstract
update_vnf
(context, vnf_id, vnf)¶
-
abstract
-
exception
tacker.extensions.vnfm.
VNFNotFound
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.NotFound
-
message
= 'VNF %(vnf_id)s could not be found'¶
-
-
exception
tacker.extensions.vnfm.
VNFScaleWaitFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= '%(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
VNFUpdateInvalidInput
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'VNF Update Invalid Input %(reason)s'¶
-
-
exception
tacker.extensions.vnfm.
VNFUpdateWaitFailed
(message=None, **kwargs)¶ Bases:
tacker.common.exceptions.TackerException
-
message
= 'VNF Update %(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.
-
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.
-
classmethod