mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-cbc.git
synced 2025-11-02 05:03:39 +00:00
vty: clarify deprecation messages
When starting osmo-cbc with an old config file, it's unclear which commands exactly are triggering deprecation warnings. Let's print the actual command instead of confusing 'This function'. Change-Id: I7d45292065950846e5e28eb2b21abcdb0707a9b3
This commit is contained in:
@@ -551,9 +551,10 @@ DEFUN_DEPRECATED(cfg_cbc_peer_old, cfg_cbc_peer_old_cmd,
|
||||
{
|
||||
struct cbc_peer *peer;
|
||||
|
||||
vty_out(vty, "%% This function is deprecated, use "
|
||||
vty_out(vty, "%% '%s' is deprecated, use "
|
||||
"'peer " CBC_PEER_PROTO_NAME_VTY_CMD " NAME' instead. "
|
||||
"Assuming 'cbsp' for peers being created%s", VTY_NEWLINE);
|
||||
"Assuming 'cbsp' for peers being created%s",
|
||||
self->string, VTY_NEWLINE);
|
||||
|
||||
peer = cbc_peer_by_name(argv[0]);
|
||||
if (!peer)
|
||||
@@ -629,8 +630,9 @@ DEFUN_DEPRECATED(cfg_peer_proto, cfg_peer_proto_cmd,
|
||||
"Configure Protocol of Peer\n"
|
||||
CBC_PEER_PROTO_NAME_VTY_STR)
|
||||
{
|
||||
vty_out(vty, "%% This function is deprecated and does nothing, use "
|
||||
"'peer " CBC_PEER_PROTO_NAME_VTY_CMD " NAME' instead%s", VTY_NEWLINE);
|
||||
vty_out(vty, "%% '%s' is deprecated and does nothing, use "
|
||||
"'peer " CBC_PEER_PROTO_NAME_VTY_CMD " NAME' instead%s",
|
||||
self->string, VTY_NEWLINE);
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user