]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix redistribute table command after bgp restarts 14282/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 28 Aug 2023 10:23:24 +0000 (12:23 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 29 Aug 2023 09:37:18 +0000 (11:37 +0200)
commit82b11d88898e1f6c6b36e7f8c379ce7282168c10
tree69ef459c4ee6174361e48da8c671fba23c80e3c7
parentc4e030ac87687b15418df652f69e3959c58de0e2
bgpd: fix redistribute table command after bgp restarts

When the BGP 'redistribute table' command is used for a given route
table, and BGP configuration is flushed and rebuilt, the redistribution
does not work.

Actually, when flushing the BGP configuration with the 'no router bgp'
command, the BGP redistribute entries related to the 'redistribute table'
entries are not flushed. Actually, at BGP deletion, the table number is
not given as parameter in bgp_redistribute_unset() function, and the
redistribution entry is not removed in zebra.
Fix this by adding some code to flush all the redistribute table
instances.

Fixes: 7c8ff89e9346 ("Multi-Instance OSPF Summary")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_vty.c
bgpd/bgp_zebra.c
bgpd/bgp_zebra.h