From 3b6815715f119e7c12c710deda6bc57738d46e37 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 9 Dec 2017 03:54:32 +0100 Subject: vty: set name for VIEW+ENABLE nodes, for VTY reference This leaves no unnamed chapters in future VTY reference documents. Change-Id: Iefb8b78094208a1a4c5d70bd6c69a3deca8da54f --- src/vty/command.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vty/command.c b/src/vty/command.c index 55284eed..71f6a71e 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -68,21 +68,25 @@ struct host host; struct cmd_node auth_node = { AUTH_NODE, "Password: ", + .name = "auth", }; struct cmd_node view_node = { VIEW_NODE, "%s> ", + .name = "view", }; struct cmd_node auth_enable_node = { AUTH_ENABLE_NODE, "Password: ", + .name = "auth-enable", }; struct cmd_node enable_node = { ENABLE_NODE, "%s# ", + .name = "enable", }; struct cmd_node config_node = { -- cgit v1.2.3