From c0064d2ae83e3995806ec3c54554af3c14bc30bb Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Thu, 18 Apr 2019 15:46:36 +0200 Subject: bgpd: add the -Z option to run bgp without zebra this feature was already pushed, but the way the arguments were passed to bgp were wrong. Signed-off-by: Philippe Guibert --- bgpd/bgp_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bgpd/bgp_main.c') diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index e42bc4411..adba73e40 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -78,6 +78,7 @@ static const struct option longopts[] = { {"skip_runas", no_argument, NULL, 'S'}, {"ecmp", required_argument, NULL, 'e'}, {"int_num", required_argument, NULL, 'I'}, + {"no_zebra", no_argument, NULL, 'Z'}, {0}}; /* signal definitions */ @@ -387,7 +388,7 @@ int main(int argc, char **argv) frr_preinit(&bgpd_di, argc, argv); frr_opt_add( - "p:l:Sne:I:" DEPRECATED_OPTIONS, longopts, + "p:l:SnZe:I:" DEPRECATED_OPTIONS, longopts, " -p, --bgp_port Set BGP listen port number (0 means do not listen).\n" " -l, --listenon Listen on specified address (implies -n)\n" " -n, --no_kernel Do not install route to kernel.\n" -- cgit v1.2.3