tacker.tosca.utils module

tacker.tosca.utils.add_maintenance_resources(template, res_tpl)
tacker.tosca.utils.find_maintenance_vdus(template)
tacker.tosca.utils.findvdus(template)
tacker.tosca.utils.get_flavor_dict(template, flavor_extra_input=None)
tacker.tosca.utils.get_image_dict(template)
tacker.tosca.utils.get_nested_resources_name(hot)
tacker.tosca.utils.get_policies_from_dict(vnfd_dict, policy_type=None)
tacker.tosca.utils.get_resources_dict(template, flavor_extra_input=None)
tacker.tosca.utils.get_sub_heat_tmpl_name(tmpl_name)
tacker.tosca.utils.get_vdu_applicationmonitoring(template)
tacker.tosca.utils.get_volumes(template)
tacker.tosca.utils.populate_flavor_extra_specs(es_dict, properties, flavor_extra_input)
tacker.tosca.utils.tosca_tmpl_local_defs()

Return local defs for ToscaTemplate

It’s a remedy to avoid a failure for a busy access while importing remote definition in a TOSCA template. While instantiating a ToscaTemplate obj with given local_defs arg, it uses a local file instead of remote one by referring the local defs returned from this function. The returned value is a dict consists of entries of url and local path such as below.

{
    "https://forge.etsi.org/.../aaa.yaml": "/path/to/aaa.yaml",
    "https://forge.etsi.org/.../bbb.yaml": "/path/to/bbb.yaml"
}
Returns:

A set of url and local file path as a dict

tacker.tosca.utils.update_nested_scaling_resources(nested_resources, mgmt_ports, metadata, res_tpl, unsupported_res_prop=None, grant_info=None, inst_req_info=None)