]> git.proxmox.com Git - mirror_frr.git/commit - doc/user/bgp.rst
bgpd: Prevent crash when issuing various forms of `bgp no-rib`
authorDonald Sharp <sharpd@nvidia.com>
Thu, 12 May 2022 13:39:27 +0000 (09:39 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 12 May 2022 14:20:28 +0000 (10:20 -0400)
commit56b91d107ffc090c621bac4f2ff93712c49f0d7b
treeb7601bde78ea1ae6a2db1c46c9f9a821babd2fcd
parent601db492b8465f6ff37efcf9113be381db744182
bgpd: Prevent crash when issuing various forms of `bgp no-rib`

The `bgp no-rib` command cycles through all the bgp rib tables
and removes them from zebra.  Modify the code so that FRR notices
that it is attempting to cycle through the safi's that are two level
tables.  In addition these safi's cannot just blindly remove the routes
from the rib as that there are none explicitly.

This code just prevents the crash in bgpd.  It does not properly cycle
through and remove the zebra changes made that are explicit to these afi's.
This should be handled as appropriate by the developers on these safi's when
it becomes important to them.

Fixes: #11178
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgpd.c
doc/user/bgp.rst