From dd42779ff92ad55d3715942267382aaa534d69ae Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 21 Jan 2022 13:05:35 -0500 Subject: [PATCH] zebra: Add to `show zebra` the type of vrf devices being used Signed-off-by: Donald Sharp --- zebra/zebra_vty.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index a7f51e4e09..922d812e37 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -3970,6 +3970,15 @@ DEFUN (show_zebra, { struct vrf *vrf; +#ifdef GNU_LINUX + if (!vrf_is_backend_netns()) + vty_out(vty, "VRF devices are available for usage\n"); + else + vty_out(vty, "Namespaces are being used as VRF devices\n"); +#else + vty_out(vty, "No VRF's available on this platform\n"); +#endif + if (zrouter.asic_offloaded) vty_out(vty, "Asic Offload is being used\n"); else -- 2.39.5