From d68b347d7a9bfa8b14ea0e2acf211d11085bc48f Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 22 Mar 2023 20:10:25 +0900 Subject: [PATCH] test --- renderer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renderer.py b/renderer.py index 41d62d1..1459a81 100644 --- a/renderer.py +++ b/renderer.py @@ -300,6 +300,10 @@ def thread_machine_content(machine, machine_content, idx, all_routes): # Get the remaining routes for route in pulled_routes["routes"]: + # Check if the route has another enabled identical route. This means it's a Route Failover pair: + for route in all_routes: + + if route["prefix"] != "0.0.0.0/0" and route["prefix"] != "::/0": app.logger.debug("Route: ["+str(route['machine']['name'])+"] id: "+str(route['id'])+" / prefix: "+str(route['prefix'])+" enabled?: "+str(route['enabled'])) route_enabled = "red"