From 385de9ac7cc9df7905d416135577529eebcb9cec Mon Sep 17 00:00:00 2001 From: gifrerenom Date: Tue, 24 Jan 2023 15:24:23 +0000 Subject: [PATCH] Device component: - corrected populate_endpoints method --- src/device/service/Tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device/service/Tools.py b/src/device/service/Tools.py index 086e5a071..0698be883 100644 --- a/src/device/service/Tools.py +++ b/src/device/service/Tools.py @@ -102,8 +102,8 @@ def populate_endpoints(device : Device, driver : _Driver, monitoring_loops : Mon endpoint_uuid = resource_value.get('uuid') device_endpoint = device.device_endpoints.add() - device_endpoint.topology_id.context_id.context_uuid.uuid = DEFAULT_CONTEXT_NAME - device_endpoint.topology_id.topology_uuid.uuid = DEFAULT_TOPOLOGY_NAME + device_endpoint.endpoint_id.topology_id.context_id.context_uuid.uuid = DEFAULT_CONTEXT_NAME + device_endpoint.endpoint_id.topology_id.topology_uuid.uuid = DEFAULT_TOPOLOGY_NAME device_endpoint.endpoint_id.device_id.device_uuid.uuid = device_uuid device_endpoint.endpoint_id.endpoint_uuid.uuid = endpoint_uuid device_endpoint.endpoint_type = resource_value.get('type') -- GitLab