Skip to content

Commit

Permalink
123
Browse files Browse the repository at this point in the history
  • Loading branch information
naumenkogs committed Dec 20, 2019
1 parent c56270c commit 273a0ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions remote_dumps/quagga_aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def find_common_suffixes(prefix_asn_paths, common_asn_suffix):
for prefix, asn_lists in prefix_asn_paths.items():
asn_lists = [dedup(asn_list.split(' ')) for asn_list in asn_lists] # preprocess
asn_lists = [asn_list for asn_list in asn_lists if asn_list != [] and asn_list != ['']] # this very rarely happens in dumps
if len(asn_lists) == 0:
continue
asn_lists.sort(key = len)
cur_asn_suffix = asn_lists[0] # represents the common sub-path (from the end) of asns to a prefix
for asn_list in asn_lists[1:]:
Expand Down

0 comments on commit 273a0ca

Please sign in to comment.