summaryrefslogtreecommitdiff
path: root/zebra/zebra_vty.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2020-04-15 10:22:32 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2020-05-13 14:24:36 +0200
commit2f90b900c85af7e5ab490ea9e54bedebfa537e03 (patch)
treebfe391f2d4d9e2198980fc77d58e904196b03ed6 /zebra/zebra_vty.c
parent82d86ab5b957d41ee3feffcf3246bffc926544c8 (diff)
zebra: permit usage of show nexthop-group with namespace based vrfs
namespace based vrfs can be used along with show nexthop-group command. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/zebra_vty.c')
-rw-r--r--zebra/zebra_vty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index ef3dc9808f..0d190d441b 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -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;
}