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

Context component:

- Corrected Constraint definitions in unitary tests
parent a6c1340a
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!62Add relese/2.0.1 fixes
...@@ -17,7 +17,7 @@ from common.Constants import DEFAULT_CONTEXT_NAME, DEFAULT_TOPOLOGY_NAME ...@@ -17,7 +17,7 @@ from common.Constants import DEFAULT_CONTEXT_NAME, DEFAULT_TOPOLOGY_NAME
from common.proto.kpi_sample_types_pb2 import KpiSampleType from common.proto.kpi_sample_types_pb2 import KpiSampleType
from common.tools.object_factory.ConfigRule import json_config_rule_set from common.tools.object_factory.ConfigRule import json_config_rule_set
from common.tools.object_factory.Connection import json_connection, json_connection_id from common.tools.object_factory.Connection import json_connection, json_connection_id
from common.tools.object_factory.Constraint import json_constraint_custom from common.tools.object_factory.Constraint import json_constraint_custom, json_constraint_sla_latency
from common.tools.object_factory.Context import json_context, json_context_id from common.tools.object_factory.Context import json_context, json_context_id
from common.tools.object_factory.Device import json_device_id, json_device_packetrouter_disabled from common.tools.object_factory.Device import json_device_id, json_device_packetrouter_disabled
from common.tools.object_factory.EndPoint import json_endpoint, json_endpoint_id from common.tools.object_factory.EndPoint import json_endpoint, json_endpoint_id
...@@ -95,7 +95,7 @@ def compose_service( ...@@ -95,7 +95,7 @@ def compose_service(
for device_id, endpoint_name in endpoint_ids for device_id, endpoint_name in endpoint_ids
] ]
constraints = [ constraints = [
json_constraint_custom('latency[ms]', str(latency_ms)), json_constraint_sla_latency(latency_ms),
json_constraint_custom('jitter[us]', str(jitter_us)), json_constraint_custom('jitter[us]', str(jitter_us)),
] ]
config_rules = [ config_rules = [
...@@ -128,7 +128,7 @@ def compose_slice( ...@@ -128,7 +128,7 @@ def compose_slice(
for device_id, endpoint_name in endpoint_ids for device_id, endpoint_name in endpoint_ids
] ]
constraints = [ constraints = [
json_constraint_custom('latency[ms]', str(latency_ms)), json_constraint_sla_latency(latency_ms),
json_constraint_custom('jitter[us]', str(jitter_us)), json_constraint_custom('jitter[us]', str(jitter_us)),
] ]
config_rules = [ config_rules = [
......
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