From df0d69a70f28f4d58f9f97617d9bb48bb017c5f8 Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Wed, 9 Nov 2022 19:07:58 +0000
Subject: [PATCH] Compute:

minor correction after renaming of common methods
---
 .../nbi_plugins/ietf_l2vpn/L2VPN_SiteNetworkAccesses.py       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 3cc823a2a..8aa410e9a 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
@@ -22,7 +22,7 @@ from werkzeug.exceptions import UnsupportedMediaType
 from common.proto.context_pb2 import Slice
 from common.tools.grpc.ConfigRules import update_config_rule_custom
 from common.tools.grpc.Constraints import (
-    update_constraint_custom, update_constraint_endpoint_location, update_constraint_endpoint_priority,
+    update_constraint_custom_dict, update_constraint_endpoint_location, update_constraint_endpoint_priority,
     update_constraint_sla_availability)
 from common.tools.grpc.EndPointIds import update_endpoint_ids
 from common.tools.grpc.Tools import grpc_message_to_json_string
@@ -99,7 +99,7 @@ def process_site_network_access(context_client : ContextClient, site_id : str, s
     update_config_rule_custom(config_rules, endpoint_settings_key, field_updates)
 
     if len(diversity_constraints) > 0:
-        update_constraint_custom(constraints, 'diversity', diversity_constraints)
+        update_constraint_custom_dict(constraints, 'diversity', diversity_constraints)
 
     update_constraint_endpoint_location(constraints, endpoint_id, region=site_id)
     if access_priority is not None: update_constraint_endpoint_priority(constraints, endpoint_id, access_priority)
-- 
GitLab