tacker.objects.vnf_instance module

class tacker.objects.vnf_instance.VnfInstance(context=None, **kwargs)

Bases: TackerObject, TackerPersistentObject, VersionedObjectDictCompat

ALL_ATTRIBUTES = {'id': ('id', 'uuid', 'VnfInstance'), 'instantiatedInfo': {'additionalParams/*': ('additional_params', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'extCpInfo/*': ('ext_cp_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'extManagedVirtualLinkInfo/*': ('ext_managed_virtual_link_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'extVirtualLinkInfo/*': ('ext_virtual_link_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'flavourId': ('id', 'string', 'VnfInstantiatedInfo'), 'instanceId': ('instance_id', 'string', 'VnfInstantiatedInfo'), 'instantiationLevelId': ('instantiation_level_id', 'string', 'VnfInstantiatedInfo'), 'virtualStorageResourceInfo/*': ('virtual_storage_resource_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'vnfInstanceId': ('vnf_instance_id', 'uuid', 'VnfInstantiatedInfo'), 'vnfState': ('vnf_state', 'string', 'VnfInstantiatedInfo'), 'vnfVirtualLinkResourceInfo/*': ('vnf_virtual_link_resource_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'vnfcInfo/*': ('vnfc_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'vnfcResourceInfo/*': ('vnfc_resource_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'})}, 'instantiationState': ('instantiation_state', 'string', 'VnfInstance'), 'metadata/*': ('vnf_metadata', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstance', 'value_column': 'value'}), 'taskState': ('task_state', 'string', 'VnfInstance'), 'tenantId': ('tenant_id', 'string', 'VnfInstance'), 'vimConnectionInfo/*': ('vim_connection_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstance', 'value_column': 'value'}), 'vnfInstanceDescription': ('vnf_instance_description', 'string', 'VnfInstance'), 'vnfInstanceName': ('vnf_instance_name', 'string', 'VnfInstance'), 'vnfPkgId': ('vnf_pkg_id', 'uuid', 'VnfInstance'), 'vnfProductName': ('vnf_product_name', 'string', 'VnfInstance'), 'vnfProvider': ('vnf_provider', 'string', 'VnfInstance'), 'vnfSoftwareVersion': ('vnf_software_version', 'string', 'VnfInstance'), 'vnfdId': ('vnfd_id', 'string', 'VnfInstance'), 'vnfdVersion': ('vnfd_version', 'string', 'VnfInstance')}
FLATTEN_ATTRIBUTES = {'id': ('id', 'uuid', 'VnfInstance'), 'instantiatedInfo/additionalParams/*': ('additional_params', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'instantiatedInfo/extCpInfo/*': ('ext_cp_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'instantiatedInfo/extManagedVirtualLinkInfo/*': ('ext_managed_virtual_link_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'instantiatedInfo/extVirtualLinkInfo/*': ('ext_virtual_link_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'instantiatedInfo/flavourId': ('id', 'string', 'VnfInstantiatedInfo'), 'instantiatedInfo/instanceId': ('instance_id', 'string', 'VnfInstantiatedInfo'), 'instantiatedInfo/instantiationLevelId': ('instantiation_level_id', 'string', 'VnfInstantiatedInfo'), 'instantiatedInfo/virtualStorageResourceInfo/*': ('virtual_storage_resource_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'instantiatedInfo/vnfInstanceId': ('vnf_instance_id', 'uuid', 'VnfInstantiatedInfo'), 'instantiatedInfo/vnfState': ('vnf_state', 'string', 'VnfInstantiatedInfo'), 'instantiatedInfo/vnfVirtualLinkResourceInfo/*': ('vnf_virtual_link_resource_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'instantiatedInfo/vnfcInfo/*': ('vnfc_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'instantiatedInfo/vnfcResourceInfo/*': ('vnfc_resource_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstantiatedInfo', 'value_column': 'value'}), 'instantiationState': ('instantiation_state', 'string', 'VnfInstance'), 'metadata/*': ('vnf_metadata', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstance', 'value_column': 'value'}), 'taskState': ('task_state', 'string', 'VnfInstance'), 'tenantId': ('tenant_id', 'string', 'VnfInstance'), 'vimConnectionInfo/*': ('vim_connection_info', 'key_value_pair', {'key_column': 'key', 'model': 'VnfInstance', 'value_column': 'value'}), 'vnfInstanceDescription': ('vnf_instance_description', 'string', 'VnfInstance'), 'vnfInstanceName': ('vnf_instance_name', 'string', 'VnfInstance'), 'vnfPkgId': ('vnf_pkg_id', 'uuid', 'VnfInstance'), 'vnfProductName': ('vnf_product_name', 'string', 'VnfInstance'), 'vnfProvider': ('vnf_provider', 'string', 'VnfInstance'), 'vnfSoftwareVersion': ('vnf_software_version', 'string', 'VnfInstance'), 'vnfdId': ('vnfd_id', 'string', 'VnfInstance'), 'vnfdVersion': ('vnfd_version', 'string', 'VnfInstance')}
VERSION: str = '1.0'

Object version field

Each service has its set of objects, each with a version attached. When a client attempts to call an object method, the server checks to see if the version of that object matches (in a compatible way) its object implementation. If so, cool, and if not, fail.

This version is allowed to have three parts, X.Y.Z, where the .Z element is reserved for stable branch backports. The .Z is ignored for the purposes of triggering a backport, which means anything changed under a .Z must be additive and non-destructive such that a node that knows about X.Y can consider X.Y.Z equivalent.

create()
property created_at: Any
property deleted: Any
property deleted_at: Any
destroy(**kwargs)
fields: MutableMapping[str, Field[Any]] = {'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'deleted': Integer(default=0,nullable=True), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'instantiated_vnf_info': Object(default=None,nullable=True), 'instantiation_state': VnfInstanceState(default=NOT_INSTANTIATED,nullable=False,valid_values=('INSTANTIATED', 'NOT_INSTANTIATED')), 'task_state': String(default=None,nullable=True), 'tenant_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'vim_connection_info': List(default=[],nullable=True), 'vnf_instance_description': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'vnf_instance_name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'vnf_metadata': Dict(default={},nullable=True), 'vnf_pkg_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'vnf_product_name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'vnf_provider': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'vnf_software_version': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'vnfd_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'vnfd_version': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}

The fields present in this object as key:field pairs.

For example:

fields = {
    'foo': obj_fields.IntegerField(),
    'bar': obj_fields.StringField(),
}
classmethod get_by_id(context, id, read_deleted='no')
property id: Any
property instantiated_vnf_info: Any
property instantiation_state: Any
save(**kwargs)

Save the changed fields back to the store.

This is optional for subclasses, but is presented here in the base class for consistency among those that do.

property task_state: Any
property tenant_id: Any
to_dict()
update(context, vnf_lcm_opoccs, body_data, vnfd_pkg_data, vnfd_id)
update_metadata(**kwargs)
property updated_at: Any
property vim_connection_info: Any
property vnf_instance_description: Any
property vnf_instance_name: Any
property vnf_metadata: Any
property vnf_pkg_id: Any
property vnf_product_name: Any
property vnf_provider: Any
property vnf_software_version: Any
property vnfd_id: Any
property vnfd_version: Any
class tacker.objects.vnf_instance.VnfInstanceList(*args: Any, **kwargs: Any)

Bases: ObjectListBase, TackerObject

VERSION: str = '1.0'

Object version field

Each service has its set of objects, each with a version attached. When a client attempts to call an object method, the server checks to see if the version of that object matches (in a compatible way) its object implementation. If so, cool, and if not, fail.

This version is allowed to have three parts, X.Y.Z, where the .Z element is reserved for stable branch backports. The .Z is ignored for the purposes of triggering a backport, which means anything changed under a .Z must be additive and non-destructive such that a node that knows about X.Y can consider X.Y.Z equivalent.

fields: MutableMapping[str, Field[Any]] = {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}

The fields present in this object as key:field pairs.

For example:

fields = {
    'foo': obj_fields.IntegerField(),
    'bar': obj_fields.StringField(),
}
classmethod get_all(context, expected_attrs=None)
classmethod get_by_filters(context, filters=None, expected_attrs=None)
classmethod get_by_marker_filter(context, limit, marker_obj, filters=None, expected_attrs=None)
property objects: Any
classmethod vnf_instance_list(vnfd_id, context)