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 = '1.0'¶
- create()¶
- property created_at¶
- property deleted¶
- property deleted_at¶
- destroy(**kwargs)¶
- fields = {'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)}¶
- classmethod get_by_id(context, id, read_deleted='no')¶
- property id¶
- property instantiated_vnf_info¶
- property instantiation_state¶
- 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¶
- property tenant_id¶
- to_dict()¶
- update(context, vnf_lcm_opoccs, body_data, vnfd_pkg_data, vnfd_id)¶
- update_metadata(**kwargs)¶
- property updated_at¶
- property vim_connection_info¶
- property vnf_instance_description¶
- property vnf_instance_name¶
- property vnf_metadata¶
- property vnf_pkg_id¶
- property vnf_product_name¶
- property vnf_provider¶
- property vnf_software_version¶
- property vnfd_id¶
- property vnfd_version¶
- class tacker.objects.vnf_instance.VnfInstanceList(*args, **kwargs)¶
Bases:
ObjectListBase
,TackerObject
- VERSION = '1.0'¶
- fields = {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}¶
- 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¶
- classmethod vnf_instance_list(vnfd_id, context)¶