From 0876b4c1b8ee835cfa442d94a6e9938e53b3a32a Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 1 Feb 2023 10:26:41 -0500 Subject: [PATCH] vtysh: Schedule shell access for deprecation Schedule shell access for deprecation and removal in a years time. Signed-off-by: Donald Sharp --- doc/user/installation.rst | 3 ++- vtysh/vtysh.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/user/installation.rst b/doc/user/installation.rst index 8f89c6c4f8..2310d397cd 100644 --- a/doc/user/installation.rst +++ b/doc/user/installation.rst @@ -314,7 +314,8 @@ options from the list below. Turn on the ability of FRR to access some shell options( telnet/ssh/bash/etc. ) from vtysh itself. This option is considered extremely unsecure and should only - be considered for usage if you really really know what you are doing. + be considered for usage if you really really know what you are doing. This + option is deprecated and will be removed on Feb 1, 2024. .. option:: --enable-gcov diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 7885188483..acc984ced7 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -4014,6 +4014,9 @@ DEFUN (vtysh_traceroute6, return CMD_SUCCESS; } +#if CONFDATE > 20240201 +CPP_NOTICE("Remove HAVE_SHELL_ACCESS and it's documentation"); +#endif #if defined(HAVE_SHELL_ACCESS) DEFUN (vtysh_telnet, vtysh_telnet_cmd,