mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-02 02:57:52 +00:00
Bug: constraint not correctly interpreted
if name of the constraint input from user is not part of networks names (typically in the case of excel input), then the program try to find a name that is clode to the user name and that is in the network list of names. This list must not include trnasponder names (because transponder end points are already listed as constraints and transponder in the middle of a path are not supported yet) This will be improved in the PR Ila names in constraints #278 Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
This commit is contained in:
@@ -248,10 +248,11 @@ def compute_constrained_path(network, req):
|
||||
total_path = candidate[0]
|
||||
else:
|
||||
# TODO: better account for individual oose and strict node
|
||||
#to ease: suppose that one strict makes the whole liste strict
|
||||
if 'STRICT' in req.loose_list[:-6]:
|
||||
# to ease: suppose that one strict makes the whole liste strict (except for the
|
||||
# last node which is the transceiver)
|
||||
if 'STRICT' not in req.loose_list[:-6]:
|
||||
print(f'\x1b[1;33;40m'+f'Request {req.request_id} could not find a path crossing' +\
|
||||
f'{nodes_list} in network topology'+ '\x1b[0m')
|
||||
f'{[el.uid for el in nodes_list[:-6]]} in network topology'+ '\x1b[0m')
|
||||
print(f'constraint ignored')
|
||||
total_path = dijkstra_path(network, source, destination, weight = 'weight')
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user