Loading src/pathcomp/frontend/service/algorithms/tools/EroPathToHops.py +3 −5 Original line number Diff line number Diff line Loading @@ -116,12 +116,10 @@ def eropath_to_hops( if link_tuple is None: raise Exception('Malformed path') ingress = next(iter([ ep_id for ep_id in link_tuple[0]['link_endpoint_ids'] if (ep_id['endpoint_id']['device_id'] == device_uuid) and\ (ep_id['endpoint_id']['endpoint_uuid'] != endpoint_uuid) ep_id for ep_id in link_tuple[0]['link_endpoint_ids'] if ep_id['endpoint_id']['device_id'] != device_uuid ]), None) if ingress['endpoint_id']['device_id'] != device_uuid: raise Exception('Malformed path') ingress_ep = ingress['endpoint_id']['endpoint_uuid'] ingress_ep = MAP_TAPI_UUIDS.get(ingress_ep, ingress_ep) Loading src/pathcomp/frontend/tests/test_ero_path.py 0 → 100644 +184 −0 File added.Preview size limit exceeded, changes collapsed. Show changes Loading
src/pathcomp/frontend/service/algorithms/tools/EroPathToHops.py +3 −5 Original line number Diff line number Diff line Loading @@ -116,12 +116,10 @@ def eropath_to_hops( if link_tuple is None: raise Exception('Malformed path') ingress = next(iter([ ep_id for ep_id in link_tuple[0]['link_endpoint_ids'] if (ep_id['endpoint_id']['device_id'] == device_uuid) and\ (ep_id['endpoint_id']['endpoint_uuid'] != endpoint_uuid) ep_id for ep_id in link_tuple[0]['link_endpoint_ids'] if ep_id['endpoint_id']['device_id'] != device_uuid ]), None) if ingress['endpoint_id']['device_id'] != device_uuid: raise Exception('Malformed path') ingress_ep = ingress['endpoint_id']['endpoint_uuid'] ingress_ep = MAP_TAPI_UUIDS.get(ingress_ep, ingress_ep) Loading
src/pathcomp/frontend/tests/test_ero_path.py 0 → 100644 +184 −0 File added.Preview size limit exceeded, changes collapsed. Show changes