summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vty/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vty/command.c b/src/vty/command.c
index a19d5db9..af936ee7 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -617,7 +617,7 @@ static int vty_dump_nodes(struct vty *vty)
if (!cnode)
continue;
- vty_out(vty, " <node id='%d'>%s", i, VTY_NEWLINE);
+ vty_out(vty, " <node id='%d'>%s", cnode->node, VTY_NEWLINE);
for (j = 0; j < vector_active(cnode->cmd_vector); ++j) {
struct cmd_element *elem;