]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: cleanup un-imported vpn prefix if no retain set
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 7 Jun 2023 10:46:30 +0000 (12:46 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Fri, 16 Jun 2023 12:18:25 +0000 (14:18 +0200)
commitaf79038c4be1b5cec7da9f67b81280d6f14e2479
treebac4d8b0738cc10c4cad83e8c8f073420f4b2335
parent3cc70b02a9e19a364f3144031f27f3e50f128c0c
bgpd: cleanup un-imported vpn prefix if no retain set

After some VRF imports are removed and "no bgp retain route-target all"
is set, prefixes that are not imported anymore remain in the BGP table.

Parse the BGP table and remove un-imported prefixes in such a case.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
bgpd/bgp_mplsvpn.c
bgpd/bgp_mplsvpn.h
bgpd/bgp_vty.c