mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 08:32:45 +00:00
lib, vtysh: Modify start/end configuration commands to be more hidden
There exists a world where some people have put `end` in their configuration. Then vtysh will command search for it and find it and then bad things happen. Ticket: CM-32665 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
b93a15d912
commit
8de2b3d990
@ -222,7 +222,7 @@ static struct call_back {
|
||||
|
||||
DEFUN_HIDDEN (start_config,
|
||||
start_config_cmd,
|
||||
"start_configuration",
|
||||
"XFRR_start_configuration",
|
||||
"The Beginning of Configuration\n")
|
||||
{
|
||||
callback.readin_time = monotime(NULL);
|
||||
@ -235,7 +235,7 @@ DEFUN_HIDDEN (start_config,
|
||||
|
||||
DEFUN_HIDDEN (end_config,
|
||||
end_config_cmd,
|
||||
"end_configuration",
|
||||
"XFRR_end_configuration",
|
||||
"The End of Configuration\n")
|
||||
{
|
||||
time_t readin_time;
|
||||
|
@ -528,12 +528,12 @@ static int vtysh_read_file(FILE *confp)
|
||||
vtysh_execute_no_pager("enable");
|
||||
vtysh_execute_no_pager("configure terminal");
|
||||
|
||||
vtysh_execute_no_pager("start_configuration");
|
||||
vtysh_execute_no_pager("XFRR_start_configuration");
|
||||
|
||||
/* Execute configuration file. */
|
||||
ret = vtysh_config_from_file(vty, confp);
|
||||
|
||||
vtysh_execute_no_pager("end_configuration");
|
||||
vtysh_execute_no_pager("XFRR_end_configuration");
|
||||
|
||||
vtysh_execute_no_pager("end");
|
||||
vtysh_execute_no_pager("disable");
|
||||
|
Loading…
Reference in New Issue
Block a user