From 49ce0990a1bbb0fbee8b58eff2261b3962067f00 Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Tue, 21 Feb 2023 14:39:48 +0000
Subject: [PATCH] Compute component - IETF L2VPN:

- Added new field availability in SLA Availability update
---
 .../nbi_plugins/ietf_l2vpn/L2VPN_SiteNetworkAccesses.py         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_SiteNetworkAccesses.py b/src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_SiteNetworkAccesses.py
index 1a8936ed4..b89fa2207 100644
--- a/src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_SiteNetworkAccesses.py
+++ b/src/compute/service/rest_server/nbi_plugins/ietf_l2vpn/L2VPN_SiteNetworkAccesses.py
@@ -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)
         num_endpoints_per_location = {len(endpoints) for endpoints in location_endpoints.values()}
         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
 
-- 
GitLab