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

Pre-release CI/CD pipeline fixes

parent 9512d565
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!137Pre-release CI/CD fixes - Service - PathComp
...@@ -116,12 +116,10 @@ def eropath_to_hops( ...@@ -116,12 +116,10 @@ def eropath_to_hops(
if link_tuple is None: raise Exception('Malformed path') if link_tuple is None: raise Exception('Malformed path')
ingress = next(iter([ ingress = next(iter([
ep_id for ep_id in link_tuple[0]['link_endpoint_ids'] ep_id
if (ep_id['endpoint_id']['device_id'] == device_uuid) and\ for ep_id in link_tuple[0]['link_endpoint_ids']
(ep_id['endpoint_id']['endpoint_uuid'] != endpoint_uuid) if ep_id['endpoint_id']['device_id'] != device_uuid
]), None) ]), None)
if ingress['endpoint_id']['device_id'] != device_uuid:
raise Exception('Malformed path')
ingress_ep = ingress['endpoint_id']['endpoint_uuid'] ingress_ep = ingress['endpoint_id']['endpoint_uuid']
ingress_ep = MAP_TAPI_UUIDS.get(ingress_ep, ingress_ep) ingress_ep = MAP_TAPI_UUIDS.get(ingress_ep, ingress_ep)
......
This diff is collapsed.
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