aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_vty.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-11-30 20:13:25 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-11-30 20:17:21 +0700
commitfc75cc0ecf74a961ed32149702a0b4346c0269df (patch)
treeddf7ed94d2e44e04ec29aeb8132d7e5e69682b44 /src/pcu_vty.c
parent1e6eb30f510e98850df8128a71f87d5bdb357ee1 (diff)
VTY: add warning about changing PCU socket path at run-time
Diffstat (limited to 'src/pcu_vty.c')
-rw-r--r--src/pcu_vty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pcu_vty.c b/src/pcu_vty.c
index 2fd57d09..1f46707e 100644
--- a/src/pcu_vty.c
+++ b/src/pcu_vty.c
@@ -1097,12 +1097,13 @@ DEFUN(cfg_pcu_sock,
{
struct gprs_rlcmac_bts *bts = bts_main_data();
+ if (vty->type != VTY_FILE)
+ vty_out(vty, "Changing PCU socket path at run-time has no effect%s", VTY_NEWLINE);
+
if (bts->pcu_sock_path) {
- /* FIXME: close the interface? */
talloc_free(bts->pcu_sock_path);
}
bts->pcu_sock_path = talloc_strdup(tall_pcu_ctx, argv[0]);
- /* FIXME: re-open the interface? */
return CMD_SUCCESS;
}