diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-11-30 20:13:25 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-11-30 20:17:21 +0700 |
commit | fc75cc0ecf74a961ed32149702a0b4346c0269df (patch) | |
tree | ddf7ed94d2e44e04ec29aeb8132d7e5e69682b44 /src | |
parent | 1e6eb30f510e98850df8128a71f87d5bdb357ee1 (diff) |
VTY: add warning about changing PCU socket path at run-time
Change-Id: I7cee2d782bd3dfc2cc8d2febc16dca905dcc294e
Diffstat (limited to 'src')
-rw-r--r-- | src/pcu_vty.c | 5 |
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; } |