Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
da51b895
Commit
da51b895
authored
2 years ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Context component:
- Corrected Constraint definitions in unitary tests
parent
a6c1340a
No related branches found
No related tags found
2 merge requests
!142
Release TeraFlowSDN 2.1
,
!62
Add relese/2.0.1 fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/context/tests/Objects.py
+3
-3
3 additions, 3 deletions
src/context/tests/Objects.py
with
3 additions
and
3 deletions
src/context/tests/Objects.py
+
3
−
3
View file @
da51b895
...
@@ -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
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment