tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver module¶
-
class
tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver.
Kubernetes
¶ Bases:
tacker.vnfm.infra_drivers.abstract_driver.VnfAbstractDriver
,tacker.vnfm.infra_drivers.scale_driver.VnfScaleAbstractDriver
Kubernetes infra driver for hosting containerized vnfs
-
clean_authenticate_vim
(vim_auth, file_descriptor)¶
-
create
(**kwargs)¶
-
create_wait
(plugin, context, vnf_dict, vnf_id, auth_attr)¶ Create wait function
Create wait function will marked VNF is ACTIVE when all status state from Pod objects is RUNNING.
-
create_wait_k8s
(k8s_objs, k8s_client_dict, vnf_instance)¶
-
delete
(**kwargs)¶
-
delete_vnf_instance_resource
(context, vnf_instance, vim_connection_info, vnf_resource)¶
-
delete_wait
(**kwargs)¶
-
get_description
()¶
-
get_name
()¶ Return a symbolic name for the service VM plugin.
-
get_resource_info
(**kwargs)¶
-
get_type
()¶ Return one of predefined type of the hosting vnf drivers.
-
heal_vdu
(plugin, context, vnf_dict, heal_request_data)¶
-
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
-
heal_vnf_wait
(context, vnf_instance, vim_connection_info)¶ Check vnf is healed successfully
-
instantiate_vnf
(context, vnf_instance, vnfd_dict, vim_connection_info, instantiate_vnf_req, grant_response, vnf_package_path, base_hot_dict)¶
-
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
(context, vnf_instance, vim_connection_info)¶
-
pre_instantiation_vnf
(context, vnf_instance, vim_connection_info, vnf_software_images, instantiate_vnf_req, vnf_package_path)¶ 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_wait
(context, plugin, auth_attr, policy, region_name, last_event_id)¶ Scale wait function
Scale wait function will marked VNF is ACTIVE when all status state from Pod objects is RUNNING.
-
update
(**kwargs)¶
-
update_wait
(**kwargs)¶
-
-
tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver.
config_opts
()¶
-
tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver.
get_scaling_policy_name
(action, policy_name)¶