summaryrefslogtreecommitdiffstats
path: root/src/vty/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vty/command.c')
-rw-r--r--src/vty/command.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vty/command.c b/src/vty/command.c
index 24d8ea41..66cf6a8e 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -679,7 +679,8 @@ static int vty_dump_nodes(struct vty *vty)
elem = vector_slot(cnode->cmd_vector, j);
if (!vty_command_is_common(elem))
continue;
- vty_dump_element(elem, vty);
+ if (!elem->attr & CMD_ATTR_DEPRECATED)
+ vty_dump_element(elem, vty);
}
}
vty_out(vty, " </node>%s", VTY_NEWLINE);
@@ -716,7 +717,8 @@ static int vty_dump_nodes(struct vty *vty)
elem = vector_slot(cnode->cmd_vector, j);
if (vty_command_is_common(elem))
continue;
- vty_dump_element(elem, vty);
+ if (!elem->attr & CMD_ATTR_DEPRECATED)
+ vty_dump_element(elem, vty);
}
vty_out(vty, " </node>%s", VTY_NEWLINE);