From e3c83bc83ef8f818c09f6afac02abc03067a223c Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Sat, 13 Jun 2020 19:51:12 +0200 Subject: [PATCH] Prefix belongs to last node in as path, not first --- backend/crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/crawler.py b/backend/crawler.py index db72724..5814616 100644 --- a/backend/crawler.py +++ b/backend/crawler.py @@ -164,7 +164,7 @@ def _add_data_to_net(net, data): if not as_path: continue - orig_node = _populate_node(net, as_path[0]) + orig_node = _populate_node(net, as_path[-1]) orig_node['prefixes'].add(route['prefix']) for n in range(len(as_path) - 1):