summaryrefslogtreecommitdiff
path: root/tools/generate_support_bundle.py
diff options
context:
space:
mode:
authorMitchell Skiba <mskiba@amazon.com>2020-01-09 11:46:13 -0800
committerMitchell Skiba <mskiba@amazon.com>2020-01-15 10:12:44 -0800
commit3373d7e7ffae6d1a7dc218ba1d9a4f80016e81d5 (patch)
treed3c1e0bc6b3bdec9daebfadc0a9726320780c0d5 /tools/generate_support_bundle.py
parent47e0611d1698fe9a23c01a967ed57e987c726918 (diff)
bgpd: add addpath ID to adj_out tree sort
When withdrawing addpaths, adj_lookup was called to find the path that needed to be withdrawn. It would lookup in the RB tree based on subgroup pointer alone, often find the path with the wrong addpath ID, and return null. Only the path highest in the tree sent to the subgroup could be found, thus withdrawn. Adding the addpath ID to the sort criteria for the RB tree allows us to simplify the logic for adj_lookup, and address this problem. We are able to remove the logic around non-addpath subgroups because the addpath ID is consistently 0 for non-addpath adj_outs, so special logic to skip matching the addpath ID isn't required. (As a side note, addpath will also never use ID 0, so there won't be any ambiguity when looking at the structure content.) Signed-off-by: Mitchell Skiba <mskiba@amazon.com>
Diffstat (limited to 'tools/generate_support_bundle.py')
0 files changed, 0 insertions, 0 deletions