]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Do not ignore auto generated VRF instances when deleting 17984/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 28 Jan 2025 15:11:58 +0000 (17:11 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 4 Feb 2025 09:32:08 +0000 (11:32 +0200)
commit0a923af56dbe43fdb4e9184c3525d0537740aef9
tree4d5155d858cb3014f859833163b7844ff0c62c41
parent8c187fb4f838d8d8a21f8608c3a510136764b122
bgpd: Do not ignore auto generated VRF instances when deleting

When VRF instance is going to be deleted inside bgp_vrf_disable(), it uses
a helper method that skips auto created VRF instances and that leads to STALE
issue.

When creating a VNI for a particular VRF vrfX with e.g. `advertise-all-vni`,
auto VRF instance is created, and then we do `router bgp ASN vrf vrfX`.

But when we do a reload bgp_vrf_disable() is called, and we miss previously
created auto instance.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_main.c