The tacker.db.vnfm.vnfm_db Module

The tacker.db.vnfm.vnfm_db Module

class tacker.db.vnfm.vnfm_db.ServiceType(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, tacker.db.models_v1.HasId, tacker.db.models_v1.HasTenant

Represents service type which hosting vnf provides.

Since a vnf may provide many services, This is one-to-many relationship.

id
service_type
tenant_id
vnfd_id
class tacker.db.vnfm.vnfm_db.VNF(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, tacker.db.models_v1.HasId, tacker.db.models_v1.HasTenant, tacker.db.models_v1.Audit

Represents vnfs that hosts services.

Here the term, ‘VM’, is intentionally avoided because it can be VM or other container.

attributes
created_at
deleted_at
description
error_reason
id
instance_id
mgmt_url
name
placement_attr
status
tenant_id
updated_at
vim
vim_id
vnfd
vnfd_id
class tacker.db.vnfm.vnfm_db.VNFAttribute(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, tacker.db.models_v1.HasId

Represents kwargs necessary for spinning up VM in (key, value) pair.

key value pair is adopted for being agnostic to actuall manager of VMs. The interpretation is up to actual driver of hosting vnf.

id
key
value
vnf_id
class tacker.db.vnfm.vnfm_db.VNFD(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, tacker.db.models_v1.HasId, tacker.db.models_v1.HasTenant, tacker.db.models_v1.Audit

Represents VNFD to create VNF.

attributes
created_at
deleted_at
description
id
mgmt_driver
name
service_types
template_source
tenant_id
updated_at
class tacker.db.vnfm.vnfm_db.VNFDAttribute(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base, tacker.db.models_v1.HasId

Represents attributes necessary for spinning up VM in (key, value) pair

key value pair is adopted for being agnostic to actuall manager of VMs. The interpretation is up to actual driver of hosting vnf.

id
key
value
vnfd_id
class tacker.db.vnfm.vnfm_db.VNFMPluginDb

Bases: tacker.extensions.vnfm.VNFMPluginBase, tacker.db.db_base.CommonDbMixin

choose_vnfd(context, service_type, required_attributes=None)
create_vnf(context, vnf)
create_vnfd(context, vnfd)
delete_vnf(context, vnf_id, soft_delete=True)
delete_vnfd(context, vnfd_id, soft_delete=True)
get_vnf(context, vnf_id, fields=None)
get_vnfd(context, vnfd_id, fields=None)
get_vnfds(context, filters, fields=None)
get_vnfs(context, filters=None, fields=None)
set_vnf_error_status_reason(context, vnf_id, new_reason)
subnet_id_to_network_id(context, subnet_id)
update_vnf(context, vnf_id, vnf)
update_vnfd(context, vnfd_id, vnfd)
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.