From 1957beb1b68d23a3d5fa07e4225842035facdf6e Mon Sep 17 00:00:00 2001 From: EstherLerouzic Date: Mon, 19 Aug 2019 12:39:41 +0100 Subject: [PATCH] Remove the filtering on transponders for correcting explicit route anytype supported including transponder in order to accept well formed route list from user (if user enters 'trx Lannion_CAS' this should be accepted even if it repeats the source name) A later PR better handles route list names Signed-off-by: EstherLerouzic --- examples/path_requests_run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/path_requests_run.py b/examples/path_requests_run.py index d0371bea..79b90cdd 100755 --- a/examples/path_requests_run.py +++ b/examples/path_requests_run.py @@ -214,7 +214,7 @@ def correct_route_list(network, pathreqlist): # prepares the format of route list of nodes to be consistant # remove wrong names, remove endpoints # also correct source and destination - anytype = [n.uid for n in network.nodes() if not isinstance(n, Transceiver)] + anytype = [n.uid for n in network.nodes()] # TODO there is a problem of identification of fibers in case of parallel fibers bitween two adjacent roadms # so fiber constraint is not supported transponders = [n.uid for n in network.nodes() if isinstance(n, Transceiver)]