From 6595c22971cd06205a2512de2f6aa96ef0af6509 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Mon, 8 Aug 2022 21:22:02 +0300 Subject: [PATCH] bgpd: When specifying listen address for bgpd we shouldn't imply no fib flag When `-l` is used, then no routes are exported to the kernel. ``` $ grep bgpd_options /etc/frr/daemons bgpd_options=" -A 127.0.0.1 -l 127.0.0.2" ``` Before: ``` donatas-pc# sh run | include no-rib bgp no-rib donatas-pc# ``` After: ``` donatas-pc# sh run | include no-rib donatas-pc# ``` Signed-off-by: Kris Shannon Signed-off-by: Donatas Abraitis --- bgpd/bgp_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index d9b0fab518..1297eb440e 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -454,8 +454,7 @@ int main(int argc, char **argv) } case 'l': listnode_add_sort_nodup(addresses, optarg); - /* listenon implies -n */ - /* fallthru */ + break; case 'n': no_fib_flag = 1; break;