tacker.vnfm.infra_drivers.openstack.openstack module

class tacker.vnfm.infra_drivers.openstack.openstack.OpenStack

Bases: VnfAbstractDriver, VnfScaleAbstractDriver

Openstack infra driver for hosting vnfs

change_ext_conn_vnf(**kwargs)

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

change_ext_conn_vnf_wait(**kwargs)

Check vnf external connnectivity is changed successfully

create(**kwargs)

Create vnf and return its id.

create_wait(**kwargs)

wait for vnf creation to complete.

delete(**kwargs)
delete_vnf_instance_resource(**kwargs)
delete_wait(**kwargs)
get_cinder_list(vnf_info)
get_description()
get_grant_resource(plugin, vnf_instance, vnf_info, scale_vnf_request, placement_obj_list, vim_connection_info, del_list)
get_grant_resource_scale_in(vnf_instance, vnf_info, vim_connection_info, del_list)
get_name()

Return a symbolic name for the service VM plugin.

get_resource_info(**kwargs)

Fetches optional details of a VNF

get_rollback_ids(**kwargs)
get_scale_ids(**kwargs)
get_scale_in_ids(**kwargs)
get_type()

Return one of predefined type of the hosting vnf drivers.

heal_vnf(**kwargs)

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

heal_vnf_wait(**kwargs)

Check vnf is healed successfully

heal_wait(**kwargs)
instantiate_vnf(context, vnf_instance, vnfd_dict, vim_connection_info, instantiate_vnf_req, grant_response, plugin, vnf_package_path=None)
post_change_ext_conn_vnf(**kwargs)

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

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

post_vnf_instantiation(**kwargs)
pre_instantiation_vnf(**kwargs)

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.

scale(**kwargs)
scale_in_reverse(**kwargs)
scale_out_initial(**kwargs)
scale_resource_update(**kwargs)
scale_update_wait(**kwargs)
scale_wait(**kwargs)
update(**kwargs)
update_stack_wait(**kwargs)
update_wait(**kwargs)
tacker.vnfm.infra_drivers.openstack.openstack.config_opts()
tacker.vnfm.infra_drivers.openstack.openstack.get_scaling_policy_name(action, policy_name)