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
f1f7ce2f
Commit
f1f7ce2f
authored
9 months ago
by
Javier Diaz
Browse files
Options
Downloads
Patches
Plain Diff
debugging
parent
e803ec1c
No related branches found
No related tags found
2 merge requests
!294
Release TeraFlowSDN 4.0
,
!259
Resolve "(CTTC) Replace DLT Gateway functionality with an opensource and Hyper Ledger v2.4+ compliant version"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/interdomain/service/topology_abstractor/DltRecordSender.py
+2
-1
2 additions, 1 deletion
...nterdomain/service/topology_abstractor/DltRecordSender.py
with
2 additions
and
1 deletion
src/interdomain/service/topology_abstractor/DltRecordSender.py
+
2
−
1
View file @
f1f7ce2f
...
@@ -16,6 +16,7 @@ import logging
...
@@ -16,6 +16,7 @@ import logging
from
typing
import
Dict
,
List
,
Optional
,
Tuple
from
typing
import
Dict
,
List
,
Optional
,
Tuple
from
common.proto.context_pb2
import
Device
,
Link
,
Service
,
Slice
,
TopologyId
from
common.proto.context_pb2
import
Device
,
Link
,
Service
,
Slice
,
TopologyId
from
common.proto.dlt_connector_pb2
import
DltDeviceId
,
DltLinkId
,
DltServiceId
,
DltSliceId
from
common.proto.dlt_connector_pb2
import
DltDeviceId
,
DltLinkId
,
DltServiceId
,
DltSliceId
from
common.tools.grpc.Tools
import
grpc_message_to_json_string
from
context.client.ContextClient
import
ContextClient
from
context.client.ContextClient
import
ContextClient
from
dlt.connector.client.DltConnectorClient
import
DltConnectorClient
from
dlt.connector.client.DltConnectorClient
import
DltConnectorClient
from
.Types
import
DltRecordTypes
from
.Types
import
DltRecordTypes
...
@@ -66,7 +67,7 @@ class DltRecordSender:
...
@@ -66,7 +67,7 @@ class DltRecordSender:
topology_id
,
dlt_record
=
self
.
dlt_record_uuid_to_data
[
dlt_record_uuid
]
topology_id
,
dlt_record
=
self
.
dlt_record_uuid_to_data
[
dlt_record_uuid
]
if
isinstance
(
dlt_record
,
Device
):
if
isinstance
(
dlt_record
,
Device
):
device_id
=
self
.
context_client
.
SetDevice
(
dlt_record
)
# Se retriggerea el Evento.
device_id
=
self
.
context_client
.
SetDevice
(
dlt_record
)
# Se retriggerea el Evento.
LOGGER
.
debug
(
'
DEVICE_ID: ({:s})
'
.
format
(
str
(
device_id
)))
LOGGER
.
debug
(
'
DEVICE_ID: ({:s})
'
.
format
(
grpc_message_to_json_string
(
device_id
)))
if
self
.
dlt_connector_client
is
None
:
continue
if
self
.
dlt_connector_client
is
None
:
continue
dlt_device_id
=
DltDeviceId
()
dlt_device_id
=
DltDeviceId
()
dlt_device_id
.
topology_id
.
CopyFrom
(
topology_id
)
# pylint: disable=no-member
dlt_device_id
.
topology_id
.
CopyFrom
(
topology_id
)
# pylint: disable=no-member
...
...
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