Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib, vtysh: Drop terminal no length cmd #15107

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions lib/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -2111,17 +2111,6 @@ DEFUN (config_terminal_length,
return CMD_SUCCESS;
}

DEFUN (config_terminal_no_length,
config_terminal_no_length_cmd,
"terminal no length",
"Set terminal line parameters\n"
NO_STR
"Set number of lines on a screen\n")
{
vty->lines = -1;
return CMD_SUCCESS;
}

DEFUN (service_terminal_length,
service_terminal_length_cmd,
"service terminal-length (0-512)",
Expand Down Expand Up @@ -2522,7 +2511,6 @@ void cmd_init(int terminal)
install_element(VIEW_NODE, &config_help_cmd);
install_element(VIEW_NODE, &config_enable_cmd);
install_element(VIEW_NODE, &config_terminal_length_cmd);
install_element(VIEW_NODE, &config_terminal_no_length_cmd);
install_element(VIEW_NODE, &show_commandtree_cmd);
install_element(VIEW_NODE, &echo_cmd);
install_element(VIEW_NODE, &autocomplete_cmd);
Expand Down
11 changes: 1 addition & 10 deletions vtysh/vtysh.c
Original file line number Diff line number Diff line change
Expand Up @@ -3767,8 +3767,7 @@ DEFUN (vtysh_terminal_length,
free(vtysh_pager_name);
vtysh_pager_name = NULL;

if (!strcmp(argv[0]->text, "no") || !strcmp(argv[1]->text, "no")) {
/* "terminal no length" = use VTYSH_PAGER */
if (!strcmp(argv[0]->text, "no")) {
vtysh_pager_envdef(true);
return CMD_SUCCESS;
}
Expand All @@ -3784,13 +3783,6 @@ DEFUN (vtysh_terminal_length,
return CMD_SUCCESS;
}

ALIAS_DEPRECATED(vtysh_terminal_length,
vtysh_terminal_no_length_cmd,
"terminal no length",
"Set terminal line parameters\n"
NO_STR
"Set number of lines on a screen\n")

DEFUN (vtysh_show_daemons,
vtysh_show_daemons_cmd,
"show daemons",
Expand Down Expand Up @@ -5151,7 +5143,6 @@ void vtysh_init_vty(void)
install_element(CONFIG_NODE, &vtysh_terminal_paginate_cmd);
install_element(VIEW_NODE, &vtysh_terminal_paginate_cmd);
install_element(VIEW_NODE, &vtysh_terminal_length_cmd);
install_element(VIEW_NODE, &vtysh_terminal_no_length_cmd);
install_element(VIEW_NODE, &vtysh_show_daemons_cmd);

install_element(VIEW_NODE, &vtysh_terminal_monitor_cmd);
Expand Down
Loading