diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-08-23 17:06:24 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-24 00:18:53 +0200 |
commit | 3cbb67f2294305ab8046db0405b0d486650d30dd (patch) | |
tree | ca774ed31a2dcbfb950b15433f3f10f67c81a389 /lib/grammar_sandbox.c | |
parent | ospf6d: properly update prefix list references (diff) | |
download | frr-3cbb67f2294305ab8046db0405b0d486650d30dd.tar.xz frr-3cbb67f2294305ab8046db0405b0d486650d30dd.zip |
lib: better warnings for install_element
Also fixes misuse of vector_slot() - that one doesn't check for access
beyond end of vector...
And print node names in grammar sandbox "printall".
Fixes: #543
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r-- | lib/grammar_sandbox.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/grammar_sandbox.c b/lib/grammar_sandbox.c index 96ecfa44d..3c6396f34 100644 --- a/lib/grammar_sandbox.c +++ b/lib/grammar_sandbox.c @@ -404,7 +404,8 @@ DEFUN (grammar_findambig, nodegraph = cnode->cmdgraph; if (!nodegraph) continue; - vty_out(vty, "scanning node %d\n", scannode - 1); + vty_out(vty, "scanning node %d (%s)\n", + scannode - 1, node_names[scannode - 1]); } commands = cmd_graph_permutations(nodegraph); |