Skip to content
Snippets Groups Projects
Commit 49ce0990 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Compute component - IETF L2VPN:

- Added new field availability in SLA Availability update
parent 3d64f3a9
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!64Slice Grouping
...@@ -113,7 +113,7 @@ def process_site_network_access(context_client : ContextClient, site_id : str, s ...@@ -113,7 +113,7 @@ def process_site_network_access(context_client : ContextClient, site_id : str, s
location_endpoints.setdefault(str_location_id, set()).add(str_endpoint_id) location_endpoints.setdefault(str_location_id, set()).add(str_endpoint_id)
num_endpoints_per_location = {len(endpoints) for endpoints in location_endpoints.values()} num_endpoints_per_location = {len(endpoints) for endpoints in location_endpoints.values()}
num_disjoint_paths = min(num_endpoints_per_location) num_disjoint_paths = min(num_endpoints_per_location)
update_constraint_sla_availability(constraints, num_disjoint_paths, all_active) update_constraint_sla_availability(constraints, num_disjoint_paths, all_active, 0.0)
return target return target
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment