diff options
Diffstat (limited to 'src/vty/vty.c')
-rw-r--r-- | src/vty/vty.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vty/vty.c b/src/vty/vty.c index 113a781c..bd0d2c37 100644 --- a/src/vty/vty.c +++ b/src/vty/vty.c @@ -110,6 +110,8 @@ struct vty *vty_new(void) if (!new) goto out; + INIT_LLIST_HEAD(&new->parent_nodes); + new->obuf = buffer_new(new, 0); /* Use default buffer size. */ if (!new->obuf) goto out_new; @@ -1480,6 +1482,12 @@ vty_read_file(FILE *confp, void *priv) case CMD_ERR_NO_MATCH: fprintf(stderr, "There is no such command.\n"); break; + case CMD_ERR_INVALID_INDENT: + fprintf(stderr, + "Inconsistent indentation -- leading whitespace must match adjacent lines, and\n" + "indentation must reflect child node levels. A mix of tabs and spaces is\n" + "allowed, but their sequence must not change within a child block.\n"); + break; } fprintf(stderr, "Error occurred during reading the below " "line:\n%s\n", vty->buf); |