diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2023-10-03 17:27:42 +0200 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2023-10-18 09:41:02 +0200 |
| commit | b71370e83fe999b089ac7a0eecf206ab60bcd55e (patch) | |
| tree | 7d2873d1102dfdd4820101814fa5f7cfc6aa65fb /lib/segment_routing.c | |
| parent | 9d32589b58af66621f00e907523d2c52a7c27fcf (diff) | |
zebra: fix label allocation when room space before first chunk
After ISIS first allocates a label chunk at [1000;2000],
the '16' label value is not used when BGP tries to
allocate a label chunk in auto mode. This does not happen
when BGP is the only one to do the label allocation.
When a label chunk has been accepted, the next label
request checks if there is room space before the existing
label chunk, and uses the lower label value to 17, and not
16.
Fix this by changing the previous range end 'prev_end' label
value to 15 which is the end of the reserved MPLS label
range.
Fixes: 3c8449794318 ("zebra: label manager should never return a reserved block")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/segment_routing.c')
0 files changed, 0 insertions, 0 deletions
