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: