bts-trx: Mark 'osmotrx power' VTY cmd as deprecated

There's a standarized way through OML's Administrate State to control
the status of TRX, so let's use and maintain that one rather than this
ad-hoc hack.

Related: SYS#4920
Change-Id: Ia7f190063c35e0ed8e2e734047b3aff608cd3ce3
This commit is contained in:
Pau Espin 2020-06-22 18:44:23 +02:00 committed by pespin
parent ab7f409bff
commit 504eca9d39
1 changed files with 5 additions and 1 deletions

View File

@ -296,7 +296,7 @@ DEFUN(cfg_phyinst_slotmask, cfg_phyinst_slotmask_cmd,
return CMD_SUCCESS;
}
DEFUN(cfg_phyinst_power_on, cfg_phyinst_power_on_cmd,
DEFUN_DEPRECATED(cfg_phyinst_power_on, cfg_phyinst_power_on_cmd,
"osmotrx power (on|off)",
OSMOTRX_STR
"Change TRX state\n"
@ -305,6 +305,10 @@ DEFUN(cfg_phyinst_power_on, cfg_phyinst_power_on_cmd,
struct phy_instance *pinst = vty->index;
struct trx_l1h *l1h = pinst->u.osmotrx.hdl;
vty_out (vty, "'osmotrx power' is deprecated, use OML's standard "
"Administrative State instead to control each TRX "
"('rf_locked' VTY cmd in osmo-bsc)%s", VTY_NEWLINE);
if (strcmp(argv[0], "on"))
vty_out(vty, "OFF: %d%s", trx_if_cmd_poweroff(l1h, NULL), VTY_NEWLINE);
else {