]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: move label allocation code to a specific function
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 25 May 2023 10:40:45 +0000 (12:40 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 16 Jun 2023 08:54:58 +0000 (10:54 +0200)
commit28d5c6e531b685725ee4c6fec90813041bfb2bc3
tree0b6ff281bafdc3eebaf3cb008cbbf577c99293fa
parent76c803171b067a22aa5695b6019fb2218d497c00
bgpd: move label allocation code to a specific function

The label allocation mechanism is called implicitly for
labeled unicast paths. The check should be explicit, because
the current patch set will extend the mechanism for mpls vpn
paths, and the code should explicitly tell which safi calls
which code.

Fix this implicit call by checking the safi value. Move the
code to a specific function.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_route.c