diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2017-03-22 10:45:51 +0100 |
|---|---|---|
| committer | Quentin Young <qlyoung@users.noreply.github.com> | 2017-03-28 15:48:07 -0400 |
| commit | 90e40ab024ebe3edf522084d61ae4f3d436f7598 (patch) | |
| tree | 2a70026532c62bb0468b75fef459d5198dc89145 | |
| parent | 2f834b3561609a15d68228091192755f77522b66 (diff) | |
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 <equinox@opensourcerouting.org>
| -rw-r--r-- | lib/grammar_sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
