From 90e40ab024ebe3edf522084d61ae4f3d436f7598 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 22 Mar 2017 10:45:51 +0100 Subject: [PATCH] lib: sandbox: print vtysh daemon targets This is very useful to check whether a command disappeared from a specific daemon (by comparing against an earlier output of "grammar find-ambiguous printall nodescan") Signed-off-by: David Lamparter --- lib/grammar_sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grammar_sandbox.c b/lib/grammar_sandbox.c index e3a7c979fc..97de943216 100644 --- a/lib/grammar_sandbox.c +++ b/lib/grammar_sandbox.c @@ -411,7 +411,7 @@ DEFUN (grammar_findambig, { int same = prev && !strcmp (prev->cmd, cur->cmd); if (printall && !same) - vty_out (vty, "'%s'%s", cur->cmd, VTY_NEWLINE); + vty_out (vty, "'%s' [%x]%s", cur->cmd, cur->el->daemon, VTY_NEWLINE); if (same) { vty_out (vty, "'%s' AMBIGUOUS:%s", cur->cmd, VTY_NEWLINE);