Change output for printing new routes

This commit is contained in:
Dominik Moritz Roth 2024-05-21 16:58:27 +02:00
parent 7c66c1dcf6
commit dbdf320b5b

View File

@ -136,6 +136,8 @@ def cycle(active_paths, clock, conf, fc):
new_path = new_paths[route_name]
alert(f'Route change: Switched from path {old_path} to path {new_path} for route {route_name}')
clock = -1 # force check next round
info(f'New routes:')
else:
info(f'Routes ok:')
for route in conf['routes']:
print(f' - {route["name"]} -> {new_paths[route["name"]]}')