tacker.vnfm.lcm_user_data.utils module

tacker.vnfm.lcm_user_data.utils.create_cpd_vl_dict(base_hot_dict, inst_req_info)

Create a dict containing information about CPD and VL.

Parameters:
  • base_hot_dict – dict(Base HOT dict format)

  • inst_req_info – dict(Instantiation request information format)

Returns:

dict(external CPD ID, Neutron-network uuid)

tacker.vnfm.lcm_user_data.utils.create_desired_capacity_dict(base_hot_dict, vnfd_dict, inst_req_info)

Create a dict containing information about desired capacity.

Parameters:
  • base_hot_dict – dict(Base HOT dict format)

  • vnfd_dict – dict(VNFD dict format)

  • inst_req_info – dict(Instantiation request information format)

Returns:

dict(Scaling aspect name, Desired capacity value)

tacker.vnfm.lcm_user_data.utils.create_final_param_dict(param_dict, vdu_flavor_dict, vdu_image_dict, cpd_vl_dict)

Create final dict containing information about HOT input parameter.

Parameters:
  • param_dict – dict(‘nfv’, Initial HOT resource dict)

  • vdu_flavor_dict – dict(VDU name, VDU flavor dict)

  • vdu_iamge_dict – dict(VDU name, Glance-image uuid)

  • cpd_vl_dict – dict(external CPD ID, Neutron-network uuid)

Returns:

dict(‘nfv’, Final HOT resource dict)

tacker.vnfm.lcm_user_data.utils.create_initial_param_dict(base_hot_dict)

Create initial dict containing information about get_param resources.

Parameters:

base_hot_dict – dict(Base HOT dict format)

Returns:

dict(‘nfv’, Initial HOT resource dict)

NOTE: ‘nfv’ is a fixed value for 1st element.

‘VDU’ and ‘CP’ are supported for 2nd element. 3rd and 4th element are mandatory.

tacker.vnfm.lcm_user_data.utils.create_initial_param_server_port_dict(base_hot_dict)

Create initial dict containing information about get_param resources.

Parameters:

base_hot_dict – dict(Base HOT dict format)

Returns:

dict(‘nfv’, Initial HOT resource dict)

NOTE: ‘nfv’ is a fixed value for 1st element.

‘VDU’ and ‘CP’ are supported for 2nd element. 3rd and 4th element are mandatory.

tacker.vnfm.lcm_user_data.utils.create_network_dict(inst_req_info, param_dict)

Create a dict containing information about VDU’s network.

Parameters:
  • inst_req_info – dict(Instantiation request information format)

  • param_dict – dict(‘nfv’, Initial HOT resource dict)

Returns:

dict(VDU name, VDU SW Image data dict)

tacker.vnfm.lcm_user_data.utils.create_sw_image_dict(vnfd_dict)

Create a dict containing information about VDU’s flavor.

Parameters:

vnfd_dict – dict(VNFD dict format)

Returns:

dict(VDU name, VDU SW Image data dict)

tacker.vnfm.lcm_user_data.utils.create_vdu_flavor_capability_name_dict(vnfd_dict)

Create a dict containing information about VDU’s flavor.

Parameters:

vnfd_dict – dict(VNFD dict format)

Returns:

dict(VDU name, VDU Capability Name dict)

tacker.vnfm.lcm_user_data.utils.create_vdu_flavor_dict(vnfd_dict)

Create a dict containing information about VDU’s flavor.

Parameters:

vnfd_dict – dict(VNFD dict format)

Returns:

dict(VDU name, VDU flavor dict)

tacker.vnfm.lcm_user_data.utils.create_vdu_image_dict(grant_info)

Create a dict containing information about VDU’s image.

Parameters:

grant_info – dict(Grant information format)

Returns:

dict(VDU name, Glance-image uuid)

tacker.vnfm.lcm_user_data.utils.get_desired_capacity_dict(base_hot_dict, vnfd_dict, inst_vnf_info)

Get a dict containing information about desired capacity.

Parameters:
  • base_hot_dict – dict(Base HOT dict format)

  • vnfd_dict – dict(VNFD dict format)

  • inst_vnf_info – dict(Instantiated VNF Info dict format)

Returns:

dict(Scaling aspect name, Desired capacity value)

tacker.vnfm.lcm_user_data.utils.get_diff_base_hot_param_from_api(base_hot_dict, inst_req_info)

Compare base hot param from API param.

Parameters:
  • base_hot_dict – dict(Base HOT dict format)

  • inst_req_info – dict(Instantiation request information format)

Returns:

dict(Parameters)