]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: add the -Z option to run bgp without zebra 4160/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 18 Apr 2019 13:46:36 +0000 (15:46 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 18 Apr 2019 13:48:27 +0000 (15:48 +0200)
this feature was already pushed, but the way the arguments were passed
to bgp were wrong.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_main.c

index e42bc441154b935dd426b5e507c6e8c52995ce43..adba73e404659198a29c224bef0f0bffb7738589 100644 (file)
@@ -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"