zebra: force off kernel NHG install with netns VRFs

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>
This commit is contained in:
Stephen Worley 2020-05-01 12:34:43 -04:00
parent af6642f0e7
commit d982012a0e

View 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());
}
/*