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
diff --git a/src/libosmo-mgcp/mgcp_vty.c b/src/libosmo-mgcp/mgcp_vty.c
index cc7c5b8..440452f 100644
--- a/src/libosmo-mgcp/mgcp_vty.c
+++ b/src/libosmo-mgcp/mgcp_vty.c
@@ -442,14 +442,13 @@
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"