Skip to content
Snippets Groups Projects
Commit 385de9ac authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component:

- corrected populate_endpoints method
parent b3bf3cf1
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!34Context Scalability extensions using CockroachDB + Removal of Stateful database inside Device + other
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment