add stubs for enable/configure terminal/bts/trx/ts commands in VTY interface
diff --git a/src/vty/command.c b/src/vty/command.c
index aac0c9b..b6fd2ad 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -44,6 +44,8 @@
#include <vty/command.h>
//#include "workqueue.h"
+#include <openbsc/gsm_data.h>
+
/* Command vector which includes some level of command lists. Normally
each daemon maintains each own cmdvec. */
vector cmdvec;
@@ -2292,12 +2294,23 @@
switch (vty->node) {
case BTS_NODE:
vty->node = VIEW_NODE;
+ vty->index = NULL;
break;
case TRX_NODE:
vty->node = BTS_NODE;
+ {
+ /* set vty->index correctly ! */
+ struct gsm_bts_trx *trx = vty->index;
+ vty->index = trx->bts;
+ }
break;
case TS_NODE:
vty->node = TRX_NODE;
+ {
+ /* set vty->index correctly ! */
+ struct gsm_bts_trx_ts *ts = vty->index;
+ vty->index = ts->trx;
+ }
break;
case VIEW_NODE:
case ENABLE_NODE: