]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: add in show vrf information about vrf backend kind
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 10 May 2018 08:05:28 +0000 (10:05 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 1 Jun 2018 13:24:13 +0000 (15:24 +0200)
By default, nothing is displayed. If vrf backend is linux network
namespaces, then "netns-based vrfs" is displayed, before dumping the
list of VRFs.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/zebra_vty.c

index 32a0addadc64fc80ab3921f42ef7a353821c1578..a2c41311ec23c0704d8ff00a8cd16304ab0c03cb 100644 (file)
@@ -3341,6 +3341,9 @@ DEFUN (show_vrf,
        struct vrf *vrf;
        struct zebra_vrf *zvrf;
 
+       if (vrf_is_backend_netns())
+               vty_out(vty, "netns-based vrfs\n");
+
        RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) {
                if (!(zvrf = vrf->info))
                        continue;