]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: force off kernel NHG install with netns VRFs
authorStephen Worley <sworley@cumulusnetworks.com>
Fri, 1 May 2020 16:34:43 +0000 (12:34 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 1 May 2020 16:34:43 +0000 (12:34 -0400)
Force off kernel NHG install with netns-based VRFs for
now. There is not really a good solution for allowing
kernel nexthop groups in namespaced based vrfs.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/rt_netlink.c

index 4630b8a8e999f11f858a4d6215cc9d7ae214e0d0..535acda30424ef5d64d739a58ba48bd98ef25209 100644 (file)
@@ -93,7 +93,8 @@ static struct in_addr ipv4_ll;
 /* Helper to control use of kernel-level nexthop ids */
 static bool kernel_nexthops_supported(void)
 {
-       return (supports_nh && zebra_nhg_kernel_nexthops_enabled());
+       return (supports_nh && !vrf_is_backend_netns()
+               && zebra_nhg_kernel_nexthops_enabled());
 }
 
 /*