tacker.vnfm.infra_drivers.abstract_driver module

class tacker.vnfm.infra_drivers.abstract_driver.VnfAbstractDriver

Bases: PluginInterface

abstract change_ext_conn_vnf(context, vnf_instance, vnf_dict, vim_connection_info, change_ext_conn_req)

Change external VNF connectivity

Parameters:
  • context – A RequestContext

  • vnf_instance – tacker.objects.VnfInstance to be changed

  • vnf_dict

  • vim_connection_info – Credentials to initialize Vim connection

  • change_ext_conn_req – tacker.objects.ChangeExtconnRequest object containing parameters passed in the change_ext_conn request

abstract change_ext_conn_vnf_wait(context, vnf_instance, vim_connection_info)

Check vnf external connnectivity is changed successfully

abstract create(plugin, context, vnf)

Create vnf and return its id.

abstract create_wait(plugin, context, vnf_dict, vnf_id)

wait for vnf creation to complete.

abstract delete(plugin, context, vnf_id)
abstract delete_vnf_instance_resource(context, vnf_instance, vim_connection_info, vnf_resource)
abstract delete_wait(plugin, context, vnf_id)
abstract get_description()
abstract get_name()

Return a symbolic name for the service VM plugin.

abstract get_resource_info(plugin, context, vnf_info, auth_attr, region_name=None)

Fetches optional details of a VNF

abstract get_type()

Return one of predefined type of the hosting vnf drivers.

abstract heal_vnf(context, vnf_instance, vim_connection_info, heal_vnf_request)

Heal vnf

Parameters:
  • context – A RequestContext

  • vnf_instance – tacker.objects.VnfInstance to be healed

Vim_info:

Credentials to initialize Vim connection

Heal_vnf_request:

tacker.objects.HealVnfRequest object containing parameters passed in the heal request

abstract heal_vnf_wait(context, vnf_instance, vim_connection_info, heal_vnf_request)

Check vnf is healed successfully

abstract instantiate_vnf(context, vnf_instance, vnfd_dict, vim_connection_info, instantiate_vnf_req, grant_response)
abstract post_change_ext_conn_vnf(context, vnf_instance, vim_connection_info)

Update resource information for each external VL/LINKPORT resources

Parameters:
  • context – A RequestContext

  • vnf_instance – tacker.objects.VnfInstance to be changed

  • vim_connection_info – Credentials to initialize Vim connection

abstract post_heal_vnf(context, vnf_instance, vim_connection_info, heal_vnf_request)

Update resource_id for each vnfc resources

Parameters:
  • context – A RequestContext

  • vnf_instance – tacker.objects.VnfInstance to be healed

Vim_info:

Credentials to initialize Vim connection

Heal_vnf_request:

tacker.objects.HealVnfRequest object containing parameters passed in the heal request

abstract post_vnf_instantiation(context, vnf_instance, vim_connection_info, instantiate_vnf_req)
abstract pre_instantiation_vnf(context, vnf_instance, vim_connection_info, vnf_software_images)

Create resources required for instantiating Vnf.

Parameters:
  • context – A RequestContext

  • vnf_instance – Object tacker.objects.VnfInstance

Vim_info:

Credentials to initialize Vim connection

Vnf_software_images:

Dict of key:value pair, <VDU/Storage node name>:tacker.objects.VnfSoftwareImage.

abstract update(plugin, context, vnf_id, vnf_dict, vnf)
abstract update_wait(plugin, context, vnf_dict)