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 3cc823a2aa7a06de6cb591ef6d668ba7eeef5cbd..8aa410e9a2136f8f0c6df94a9d17ea376fcfc516 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)