summaryrefslogtreecommitdiff
path: root/zebra/zebra_router.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-06-30 11:59:39 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-07-01 07:59:53 -0400
commit88b0baa64865918fe042444b32bb684db54fdbc1 (patch)
tree6cd3d77662f7e6af444796fa29ea44509a5d2439 /zebra/zebra_router.c
parentc3dcd24bc2df1a8554b02b208275ed1879cc1bad (diff)
zebra: move allow_delete to zrouter.allow_delete
Instead of having global allow_delete move it to where it belongs in the zrouter data structure. Additionally show this data in `show zebra` Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_router.c')
-rw-r--r--zebra/zebra_router.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c
index 9fccda9e08..f7ad30b41f 100644
--- a/zebra/zebra_router.c
+++ b/zebra/zebra_router.c
@@ -278,6 +278,8 @@ void zebra_router_init(bool asic_offload, bool notify_on_ack)
{
zrouter.sequence_num = 0;
+ zrouter.allow_delete = false;
+
zrouter.packets_to_process = ZEBRA_ZAPI_PACKETS_TO_PROCESS;
zrouter.nhg_keep = ZEBRA_DEFAULT_NHG_KEEP_TIMER;