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

Compute:

minor correction after renaming of common methods
parent 7c74ce69
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!24Integrate NFV-SDN'22 demo
...@@ -22,7 +22,7 @@ from werkzeug.exceptions import UnsupportedMediaType ...@@ -22,7 +22,7 @@ from werkzeug.exceptions import UnsupportedMediaType
from common.proto.context_pb2 import Slice from common.proto.context_pb2 import Slice
from common.tools.grpc.ConfigRules import update_config_rule_custom from common.tools.grpc.ConfigRules import update_config_rule_custom
from common.tools.grpc.Constraints import ( 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) update_constraint_sla_availability)
from common.tools.grpc.EndPointIds import update_endpoint_ids from common.tools.grpc.EndPointIds import update_endpoint_ids
from common.tools.grpc.Tools import grpc_message_to_json_string 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 ...@@ -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) update_config_rule_custom(config_rules, endpoint_settings_key, field_updates)
if len(diversity_constraints) > 0: 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) 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) if access_priority is not None: update_constraint_endpoint_priority(constraints, endpoint_id, access_priority)
......
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