]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: release manual vpn label on instance deletion 18121/head
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 12 Feb 2025 12:49:50 +0000 (13:49 +0100)
committerLouis Scalbert <louis.scalbert@6wind.com>
Wed, 12 Feb 2025 13:03:02 +0000 (14:03 +0100)
commitd6363625c35a99933bf60c9cf0b79627b468c9f7
treecf0dbacea415c78add98b79b0d146729c6ee7049
parentd275f551c330c9a8d808081547cfe1ce410f3db0
bgpd: release manual vpn label on instance deletion

When a BGP instance with a manually assigned VPN label is deleted, the
label is not released from the Zebra label registry. As a result,
reapplying a configuration with the same manual label leads to VPN
prefix export failures.

For example, with the following configuration:

> router bgp 65000 vrf BLUE
>  address-family ipv4 unicast
>   label vpn export <int>

Release zebra label registry on unconfiguration.

Fixes: d162d5f6f5 ("bgpd: fix hardset l3vpn label available in mpls pool")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
bgpd/bgpd.c