From a8802d6e05dec6babeddd1c17523d0c8cb12ad80 Mon Sep 17 00:00:00 2001 From: Blackwhitebear8 Date: Wed, 13 Aug 2025 18:26:52 +0200 Subject: [PATCH] Update modules/visual_route.py --- modules/visual_route.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/visual_route.py b/modules/visual_route.py index cc9a2f3..b02de2c 100644 --- a/modules/visual_route.py +++ b/modules/visual_route.py @@ -67,10 +67,13 @@ def _parse_bgp_paths_to_graph(bgp_data: str) -> dict: for line in lines[paths_header_index + 1:]: stripped_line = line.strip() if not stripped_line: continue + is_new_path_line = False if line.startswith(' ') and not line.startswith(' '): first_word = stripped_line.split(' ')[0] - if first_word.isdigit() or stripped_line == "Local": + + cleaned_first_word = first_word.replace(',', '') + if cleaned_first_word.isdigit() or stripped_line == "Local": is_new_path_line = True if is_new_path_line: