Browse Source

Prefix belongs to last node in as path, not first

new-map
Sebastian Lohff 2 years ago
parent
commit
e3c83bc83e
  1. 2
      backend/crawler.py

2
backend/crawler.py

@ -164,7 +164,7 @@ def _add_data_to_net(net, data): @@ -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):

Loading…
Cancel
Save