summaryrefslogtreecommitdiffstats
path: root/src/vty/command.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-09-18 17:10:36 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-09-23 12:24:56 +0000
commit0b723f6a6cdc4171ee67ddd8d8c1bb812fb4cf06 (patch)
treeaab0fea49b3ed3bcceb01cb604b17e2d60939bf4 /src/vty/command.c
parentb022c867e86333ceaad9027e2e7ee621ab3891e5 (diff)
vty: use internal node id for xml ids
The 'show online-help' produces XML output with <node id="..."> ids. We reference those from the osmo-gsm-manuals, but until now, these ids fall out of sync when the amount of VTY nodes changes. Change these ids to use the internal node ID constant (as in enum bsc_vty_node) instead of a simple counter. If this is merged, we need to adjust the references in osmo-gsm-manuals.git. Change-Id: Ib07fb9d9106e19f5be6539493e82b5d5991f8bc2
Diffstat (limited to 'src/vty/command.c')
-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;