summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh_config.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-12-15 20:21:56 +0100
committerDonald Sharp <sharpd@nvidia.com>2020-12-15 21:33:17 +0100
commit8de2b3d9903a79107885b5304d55941dfa56b2c1 (patch)
treea0ead0d65c5e8e286f5e93c51c00c1ae834fb636 /vtysh/vtysh_config.c
parentMerge pull request #7634 from AnuradhaKaruppiah/df-fixes (diff)
downloadfrr-8de2b3d9903a79107885b5304d55941dfa56b2c1.tar.xz
frr-8de2b3d9903a79107885b5304d55941dfa56b2c1.zip
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>
Diffstat (limited to 'vtysh/vtysh_config.c')
-rw-r--r--vtysh/vtysh_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index f35a8af4b..c8154d969 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -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");