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
2a4a2132
Commit
2a4a2132
authored
2 months ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
PathComp component - Frontend:
- Corrected default link total capacity
parent
69337db4
No related branches found
No related tags found
3 merge requests
!359
Release TeraFlowSDN 5.0
,
!328
Resolve "(CTTC) Update recommendations to use SocketIO on NBI and E2E Orch components"
,
!286
Resolve "(CTTC) Implement integration test between E2E-IP-Optical SDN Controllers"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pathcomp/frontend/service/algorithms/tools/ComposeRequest.py
+1
-1
1 addition, 1 deletion
...hcomp/frontend/service/algorithms/tools/ComposeRequest.py
with
1 addition
and
1 deletion
src/pathcomp/frontend/service/algorithms/tools/ComposeRequest.py
+
1
−
1
View file @
2a4a2132
...
@@ -130,7 +130,7 @@ def compose_link(grpc_link : Link) -> Dict:
...
@@ -130,7 +130,7 @@ def compose_link(grpc_link : Link) -> Dict:
elif
total_capacity_gbps
is
not
None
:
elif
total_capacity_gbps
is
not
None
:
used_capacity_gbps
=
total_capacity_gbps
used_capacity_gbps
=
total_capacity_gbps
if
total_capacity_gbps
is
None
:
total_capacity_gbps
=
100
if
total_capacity_gbps
is
None
:
total_capacity_gbps
=
100
000
if
used_capacity_gbps
is
None
:
used_capacity_gbps
=
0
if
used_capacity_gbps
is
None
:
used_capacity_gbps
=
0
available_capacity_gbps
=
total_capacity_gbps
-
used_capacity_gbps
available_capacity_gbps
=
total_capacity_gbps
-
used_capacity_gbps
...
...
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