Prefix belongs to last node in as path, not first
This commit is contained in:
parent
c81e632a72
commit
e3c83bc83e
|
@ -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…
Reference in New Issue