mgcp_vty: deprecate bind early command
The VTY command "bind early" is deprecated but it prints an error message and the DEFUN is not set to DEFUN_DEPRECATED. Change-Id: I594a87d2f63826a9d7b4f6a380586b08b3b79518
This commit is contained in:
parent
ba94b6d7be
commit
8cfe7df3f1
|
@ -442,14 +442,13 @@ DEFUN(cfg_mgcp_bind_port,
|
|||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUN(cfg_mgcp_bind_early,
|
||||
cfg_mgcp_bind_early_cmd,
|
||||
"bind early (0|1)",
|
||||
BIND_STR
|
||||
"Bind local ports on start up\n" "Bind on demand\n" "Bind on startup\n")
|
||||
DEFUN_DEPRECATED(cfg_mgcp_bind_early,
|
||||
cfg_mgcp_bind_early_cmd,
|
||||
"bind early (0|1)",
|
||||
BIND_STR
|
||||
"Bind local ports on start up\n" "Bind on demand\n" "Bind on startup\n")
|
||||
{
|
||||
vty_out(vty, "bind early is deprecated, remove it from the config.\n");
|
||||
return CMD_WARNING;
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
#define RTP_STR "RTP configuration\n"
|
||||
|
|
Loading…
Reference in New Issue