]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: "default-originate" shouldn't withdraw non-default routes
authorXiao Liang <shaw.leon@gmail.com>
Fri, 15 Dec 2023 10:27:39 +0000 (18:27 +0800)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Mon, 18 Dec 2023 14:17:45 +0000 (14:17 +0000)
commit275a4b508a559aaafa0d6095a59a35ae690d9a5e
treef95936f389886341c4be3d7c1ee2ff1c1c6aec3f
parent80ce05dc59e0da01989e1e42c0ce5bd73824cf52
bgpd: "default-originate" shouldn't withdraw non-default routes

Prevent "default-originate" from withdrawing non-default routes like
0.0.0.0/1 by checking prefix length.

Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
(cherry picked from commit 4d74ba929daa6e6b2fe15f9df6e61d5e4808b64c)
bgpd/bgp_route.c