diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-16 15:00:52 +0900 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-01 17:25:56 +0100 |
| commit | 0b84f294904959a4be58db6fe0e89d71b2c1f401 (patch) | |
| tree | f52c765644294f314ede33506f29b6888439b904 /lib/command.h | |
| parent | 0577b824e137f143c899a567b1bbeb109841c796 (diff) | |
*: make DEFUN installations file-local
This moves all install_element calls into the file where the DEFUNs are
located. This fixes several small related bugs:
- ospf6d wasn't installing a "no interface FOO" command
- zebra had a useless copy of "interface FOO"
- pimd's copy of "interface FOO" was not setting qobj_index, which means
"description LINE" commands would fail with an error
The next commit will do the actual act of making "foo_cmd" static.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/command.h')
| -rw-r--r-- | lib/command.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/command.h b/lib/command.h index f120063ea9..a170a9549d 100644 --- a/lib/command.h +++ b/lib/command.h @@ -414,6 +414,8 @@ extern int cmd_execute_command (vector, struct vty *, const struct cmd_element * extern int cmd_execute_command_strict (vector, struct vty *, const struct cmd_element **); extern void cmd_init (int); extern void cmd_terminate (void); +extern void cmd_exit (struct vty *vty); +extern int cmd_list_cmds (struct vty *vty, int do_permute); /* memory management for cmd_element */ void @@ -430,11 +432,6 @@ struct cmd_token * copy_cmd_token (struct cmd_token *); /* Export typical functions. */ -extern struct cmd_element config_end_cmd; -extern struct cmd_element config_exit_cmd; -extern struct cmd_element config_quit_cmd; -extern struct cmd_element config_help_cmd; -extern struct cmd_element config_list_cmd; extern const char *host_config_get (void); extern void host_config_set (const char *); |
