VTY: add warning about changing PCU socket path at run-time
Change-Id: I7cee2d782bd3dfc2cc8d2febc16dca905dcc294e
diff --git a/src/pcu_vty.c b/src/pcu_vty.c
index 2fd57d0..1f46707 100644
--- a/src/pcu_vty.c
+++ b/src/pcu_vty.c
@@ -1097,12 +1097,13 @@
{
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;
}