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

Context component:

- resolved database conflict while creating slice endpoints
parent 9537ddb3
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!24Integrate NFV-SDN'22 demo
......@@ -624,7 +624,7 @@ class ContextServiceServicerImpl(ContextServiceServicer):
db_endpoint : EndPointModel = get_object(self.database, EndPointModel, str_endpoint_key)
str_slice_endpoint_key = key_to_str([slice_uuid, str_endpoint_key], separator='--')
str_slice_endpoint_key = key_to_str([str_slice_key, str_endpoint_key], separator='--')
result : Tuple[SliceEndPointModel, bool] = get_or_create_object(
self.database, SliceEndPointModel, str_slice_endpoint_key, {
'slice_fk': db_slice, 'endpoint_fk': db_endpoint})
......
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