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
19328bbc
Commit
19328bbc
authored
2 years ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
PathComp component - Frontend:
- Added missing name-uuid mapping
parent
f4ed75a8
No related branches found
No related tags found
2 merge requests
!142
Release TeraFlowSDN 2.1
,
!71
OFC'23 + IETF L2VPN Device Driver + Device Controllers + Multiple small improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pathcomp/frontend/service/algorithms/_Algorithm.py
+3
-0
3 additions, 0 deletions
src/pathcomp/frontend/service/algorithms/_Algorithm.py
with
3 additions
and
0 deletions
src/pathcomp/frontend/service/algorithms/_Algorithm.py
+
3
−
0
View file @
19328bbc
...
@@ -64,6 +64,7 @@ class _Algorithm:
...
@@ -64,6 +64,7 @@ class _Algorithm:
_device_uuid
=
grpc_device
.
device_id
.
device_uuid
.
uuid
_device_uuid
=
grpc_device
.
device_id
.
device_uuid
.
uuid
_device_name
=
grpc_device
.
name
_device_name
=
grpc_device
.
name
self
.
device_name_mapping
[
_device_name
]
=
_device_uuid
self
.
device_name_mapping
[
_device_name
]
=
_device_uuid
self
.
device_name_mapping
[
_device_uuid
]
=
_device_uuid
device_endpoint_dict
:
Dict
[
str
,
Tuple
[
Dict
,
EndPointId
]]
=
dict
()
device_endpoint_dict
:
Dict
[
str
,
Tuple
[
Dict
,
EndPointId
]]
=
dict
()
for
json_endpoint
,
grpc_endpoint
in
zip
(
json_device
[
'
device_endpoints
'
],
grpc_device
.
device_endpoints
):
for
json_endpoint
,
grpc_endpoint
in
zip
(
json_device
[
'
device_endpoints
'
],
grpc_device
.
device_endpoints
):
...
@@ -75,6 +76,8 @@ class _Algorithm:
...
@@ -75,6 +76,8 @@ class _Algorithm:
_endpoint_name
=
grpc_endpoint
.
name
_endpoint_name
=
grpc_endpoint
.
name
self
.
endpoint_name_mapping
[(
_device_uuid
,
_endpoint_name
)]
=
_endpoint_uuid
self
.
endpoint_name_mapping
[(
_device_uuid
,
_endpoint_name
)]
=
_endpoint_uuid
self
.
endpoint_name_mapping
[(
_device_name
,
_endpoint_name
)]
=
_endpoint_uuid
self
.
endpoint_name_mapping
[(
_device_name
,
_endpoint_name
)]
=
_endpoint_uuid
self
.
endpoint_name_mapping
[(
_device_uuid
,
_endpoint_uuid
)]
=
_endpoint_uuid
self
.
endpoint_name_mapping
[(
_device_name
,
_endpoint_uuid
)]
=
_endpoint_uuid
self
.
endpoint_dict
[
device_uuid
]
=
device_endpoint_dict
self
.
endpoint_dict
[
device_uuid
]
=
device_endpoint_dict
...
...
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