tacker.db.vnfm.vnfm_db module

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

Bases: Base, HasId, 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: Base, HasId, HasTenant, 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_ip_address
name
placement_attr
status
tenant_id
updated_at
vim
vim_id
vnfd
vnfd_id
class tacker.db.vnfm.vnfm_db.VNFAttribute(**kwargs)

Bases: Base, 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: Base, HasTenant, 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: Base, 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: VNFMPluginBase, CommonDbMixin

static check_vnf_status_legality(vnf_db, vnf_id)
create_placement_constraint(context, placement_obj_list)
delete_placement_constraint(context, vnf_instance_id)
get_placement_constraint(context, vnf_instance_id)
get_vnf(context, vnf_id, fields=None)
get_vnfd(context, vnfd_id, fields=None)
get_vnfs(context, filters=None, fields=None)
update_placement_constraint(context, placement_obj)
update_placement_constraint_heal(context, vnf_info, vnf_instance)
update_vnf_cancel_status(context, vnf_id, status)
update_vnf_fail_status(context, vnf_id, status)