aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-06-22 18:44:23 +0200
committerpespin <pespin@sysmocom.de>2020-06-23 14:19:31 +0000
commit504eca9d39e5dcf8b6328ee2a500a1ee0e6d1200 (patch)
tree523411a674fbef1687ebe07db8ebf4b01ad2075a
parentab7f409bffd0b95c86d874797366a77f20538a30 (diff)
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
-rw-r--r--src/osmo-bts-trx/trx_vty.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/osmo-bts-trx/trx_vty.c b/src/osmo-bts-trx/trx_vty.c
index b3214ee0..2e529588 100644
--- a/src/osmo-bts-trx/trx_vty.c
+++ b/src/osmo-bts-trx/trx_vty.c
@@ -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 {