mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-01 10:38:10 +00:00
bugfix: don't check a reversed path that has no baudrate
without this change if a request was blocked on main path due to 'NO_FEASIBLE_BAUDRATE_WITH_SPACING' and if the request was bidir, there was a propagation tentative on the reversed path despite the fact that no baudrate was selected, which ended up with a program crash. Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com> Change-Id: Ie4e578aab944e534d8b2d99fb02c4e28a242e717
This commit is contained in:
committed by
Jan Kundrát
parent
4396a4efe9
commit
b867c57bee
@@ -1133,9 +1133,8 @@ def compute_path_with_disjunction(network, equipment, pathreqlist, pathlist):
|
||||
|
||||
# reversed path is needed for correct spectrum assignment
|
||||
reversed_path = find_reversed_path(pathlist[i])
|
||||
if pathreq.bidir:
|
||||
# only propagate if bidir is true, but needs the reversed path anyway for
|
||||
# correct spectrum assignment
|
||||
if pathreq.bidir and pathreq.baud_rate is not None:
|
||||
# Both directions requested, and a feasible mode was found
|
||||
rev_p = deepcopy(reversed_path)
|
||||
|
||||
print(f'\n\tPropagating Z to A direction {pathreq.destination} to {pathreq.source}')
|
||||
|
||||
Reference in New Issue
Block a user