diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2022-01-23 14:08:46 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2022-01-24 20:18:46 +0100 |
commit | 870791a3b57996c5fe0352adcc081d23778bfff0 (patch) | |
tree | e193c88a051e2abe6a29dd62a7754049f9a69d68 /bgpd | |
parent | Merge pull request #10374 from opensourcerouting/bgp-reset-counters (diff) | |
download | frr-870791a3b57996c5fe0352adcc081d23778bfff0.tar.xz frr-870791a3b57996c5fe0352adcc081d23778bfff0.zip |
*: do not send opaque data to zebra by default
Opaque data takes up a lot of memory when there are a lot of routes on
the box. Given that this is just a cosmetic info, I propose to disable
it by default to not shock people who start using FRR for the first time
or upgrades from an old version.
Fixes #10101.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_vty.c | 4 | ||||
-rw-r--r-- | bgpd/bgpd.c | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index e3f1abe74..36fe17bc0 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -16994,8 +16994,8 @@ int bgp_config_write(struct vty *vty) if (bgp_option_check(BGP_OPT_NO_FIB)) vty_out(vty, "bgp no-rib\n"); - if (!CHECK_FLAG(bm->flags, BM_FLAG_SEND_EXTRA_DATA_TO_ZEBRA)) - vty_out(vty, "no bgp send-extra-data zebra\n"); + if (CHECK_FLAG(bm->flags, BM_FLAG_SEND_EXTRA_DATA_TO_ZEBRA)) + vty_out(vty, "bgp send-extra-data zebra\n"); /* BGP configuration. */ for (ALL_LIST_ELEMENTS(bm->bgp, mnode, mnnode, bgp)) { diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 72e7a936c..f33ec1479 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -7725,8 +7725,6 @@ void bgp_master_init(struct thread_master *master, const int buffer_size, bm->socket_buffer = buffer_size; bm->wait_for_fib = false; - SET_FLAG(bm->flags, BM_FLAG_SEND_EXTRA_DATA_TO_ZEBRA); - bgp_mac_init(); /* init the rd id space. assign 0th index in the bitfield, |