SLAs¶
-
tnglib.create_sla_template(templateName, nsd_uuid, expireDate, guaranteeId, service_licence_type, allowed_service_instances, service_licence_expiration_date, template_initiator, provider_name, dflavour_name=None)¶ Generates an initial SLA template.
Parameters: - templateName – name for the SLA template.
- nsd_uuid – uuid of the network service.
- expireDate – DD/MM/YYYY expiration date.
- guaranteeId – id of the SLA guarantee.
- template_initiator – the one who creates the sla template e.g. Uprc.
- provider_name – the vendor on behalf of whom the sla template is generated e.g. Telefonica.
- dflavour_name – the mapped deployment flavor.
- service_licence_type – the selected license type (public|trial|private).
- allowed_service_instances – the allowed ns instances based on the license.
- service_licence_expiration_date – DD/MM/YYYY license expiration date.
Returns: A tuple. [0] is a bool with the result. [1] is a string containing the uuid of the created SLA template.
-
tnglib.delete_sla_template(sla_template_uuid)¶ Deletes an SLA template.
Parameters: sla_template_uuid – uuid of an SLA template. Returns: A tuple. [0] is a bool with the result. [1] is a string containing the uuid of the terminated SLA.
-
tnglib.get_agreements(nsi_uuid=None)¶ Returns info on all available SLA agreements.
Parameters: nsi_uuid – (Default value = None) uuid of a service instance. Returns: A tuple. [0] is a bool with the result. [1] is a list of dictonaries. Each dictionary contains an SLA agreement.
-
tnglib.get_detailed_agreement(sla_uuid, nsi_uuid)¶ Returns info on a specific Agreement.
Parameters: - sla_uuid – uuid of an SLA template.
- nsi_uuid – uuid of a service instance.
Returns: A tuple. [0] is a bool with the result. [1] is a dictionary containing details on a single SLA agreement.
-
tnglib.get_sla_guarantees()¶ Returns info on all available SLA guarantees.
Returns: A tuple. [0] is a bool with the result. [1] is a list of dictionaries. Each dictionary contains an SLA guarantee.
-
tnglib.get_sla_template(sla_uuid)¶ Returns info on all available SLA templates.
Parameters: sla_uuid – uuid of an SLA template. Returns: A tuple. [0] is a bool with the result. [1] is a dictionary containg an SLA template.
-
tnglib.get_sla_templates()¶ Returns info on all available SLA templates.
Returns: A tuple. [0] is a bool with the result. [1] is a list of dictionaries. Each dictionary contains an SLA template.
-
tnglib.get_violations(nsi_uuid=None)¶ Returns info on all SLA violations.
Parameters: nsi_uuid – (Default value = None) uuid of a service instance. Returns: A tuple. [0] is a bool with the result. [1] is a list of SLA violations associated to a service instance.
-
tnglib.get_violations_per_nsi_sla(sla_uuid, nsi_uuid)¶ Returns the vaiolations for a specific SLA.
Parameters: - sla_uuid – uuid of SLA template.
- nsi_uuid – uuid of network service instance.
Returns: A tuple. [0] is a bool with the result. [1] is a list of SLA violations associated to a service instance and an SLA template.