summaryrefslogtreecommitdiff
path: root/tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py
diff options
context:
space:
mode:
authorNobuhiro MIKI <nmiki@yahoo-corp.jp>2022-04-07 16:09:02 +0900
committerNobuhiro MIKI <nmiki@yahoo-corp.jp>2022-04-14 14:37:55 +0900
commit9fa4ae2943df3e6cd16b292b6c3916e3066b023e (patch)
tree65b2a029041f40bb61ef53f7ae5fe25bd23f4d76 /tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py
parent808ad1b6173bdb24f8ba9bb8c19228f8d7bf6b3c (diff)
bgpd: take SRv6 locator's prefix length into account when generating SIDs
Until now, it has been hard-coded that the position at which the label is inserted is from the 64th bits. Therefore, when the Locator prefix was not /64, incorrect SIDs were generated. Also, SIDs are generated in duplicate on Lines 604 & 613 in bgpd/bgp_mplsvpn.c. In this patch, the position where the label is inserted is calculated based on the sum of block_bits_length and node_bits_length (i.e., the user-specified Locator prefix length). In addition, SID generation is performed at one location in alloc_new_sid. Signed-off-by: Nobuhiro MIKI <nmiki@yahoo-corp.jp>
Diffstat (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py')
0 files changed, 0 insertions, 0 deletions