]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Add to `show zebra` the type of vrf devices being used
authorDonald Sharp <sharpd@nvidia.com>
Fri, 21 Jan 2022 18:05:35 +0000 (13:05 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 4 Feb 2022 15:29:38 +0000 (10:29 -0500)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_vty.c

index a7f51e4e097cbf5b9676484be5d19ed7772127b6..922d812e377216a12ef17b2846f5d6f685c2b0f4 100644 (file)
@@ -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