]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: permit usage of show nexthop-group with namespace based vrfs 6227/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 15 Apr 2020 08:22:32 +0000 (10:22 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 13 May 2020 12:24:36 +0000 (14:24 +0200)
namespace based vrfs can be used along with show nexthop-group command.

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

index ef3dc9808f1ae40378e0af757ffea53c88a6b4e0..0d190d441bc7f6e92e8a16bf10d1b717a0d47c50 100644 (file)
@@ -1348,8 +1348,9 @@ DEFPY (show_nexthop_group,
        else if (v6)
                afi = AFI_IP6;
 
-       if (vrf_is_backend_netns() && (vrf_name || vrf_all)) {
-               vty_out(vty, "VRF subcommand does not make any sense in l3mdev based vrf's");
+       if (!vrf_is_backend_netns() && (vrf_name || vrf_all)) {
+               vty_out(vty,
+                       "VRF subcommand does not make any sense in l3mdev based vrf's\n");
                return CMD_WARNING;
        }