summaryrefslogtreecommitdiff
path: root/zebra/zebra_router.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-07-24 11:16:53 -0400
committerDonald Sharp <sharpd@nvidia.com>2023-08-03 08:25:20 -0400
commit1f5611c06d1c243b42279748788f0627793ead9c (patch)
tree4a6010c52f465d447620eb77a1d4ec79900ecc61 /zebra/zebra_router.c
parent7415f1e120c9b9d6da9badcfe7e27d22d891cf72 (diff)
zebra: Allow zebra cli to accept v6 routes with v4 nexthops
add --v6-with-v4-nexthop cli to zebra to allow operator to specify that this functionality is allowed. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_router.c')
-rw-r--r--zebra/zebra_router.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c
index 1b3e31ee42..4caaf8a9e2 100644
--- a/zebra/zebra_router.c
+++ b/zebra/zebra_router.c
@@ -255,7 +255,8 @@ bool zebra_router_notify_on_ack(void)
return !zrouter.asic_offloaded || zrouter.notify_on_ack;
}
-void zebra_router_init(bool asic_offload, bool notify_on_ack)
+void zebra_router_init(bool asic_offload, bool notify_on_ack,
+ bool v6_with_v4_nexthop)
{
zrouter.sequence_num = 0;
@@ -310,7 +311,7 @@ void zebra_router_init(bool asic_offload, bool notify_on_ack)
zrouter.asic_offloaded = asic_offload;
zrouter.notify_on_ack = notify_on_ack;
-
+ zrouter.v6_with_v4_nexthop = v6_with_v4_nexthop;
/*
* If you start using asic_notification_nexthop_control
* come talk to the FRR community about what you are doing