diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2019-04-18 15:46:36 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2019-04-18 15:48:27 +0200 |
commit | c0064d2ae83e3995806ec3c54554af3c14bc30bb (patch) | |
tree | 7beffd8ee94bb8e435e719ec32a52029c6d7b0d1 /bgpd/bgp_main.c | |
parent | .gitignore: ignore core dumps (diff) | |
download | frr-c0064d2ae83e3995806ec3c54554af3c14bc30bb.tar.xz frr-c0064d2ae83e3995806ec3c54554af3c14bc30bb.zip |
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 <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_main.c')
-rw-r--r-- | bgpd/bgp_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
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" |