aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libcommon/common_vty.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-03-29 17:46:14 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-03-29 17:50:49 +0200
commit06f4fc79a221b2451bdbf9e1035d42f3bf9eaf1c (patch)
tree107cefc990c200c626204e2cb3b55133bff807a8 /openbsc/src/libcommon/common_vty.c
parentfcac2911cfca435d2c816a8dd9c85a71ed6ecea8 (diff)
bsc: Make the MSC node a child of CONFIG_NODE
The VTY code calls the write function for nodes in the order of registration of the node and not in terms of hierachy of nodes. This means that the e1_input code is written before the MSC node that was the child of the network. Make the MSC_NODE a direct descendant of the CONFIG_NODE and avoid this issue.
Diffstat (limited to 'openbsc/src/libcommon/common_vty.c')
-rw-r--r--openbsc/src/libcommon/common_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/libcommon/common_vty.c b/openbsc/src/libcommon/common_vty.c
index e974f2d88..f14dbca2d 100644
--- a/openbsc/src/libcommon/common_vty.c
+++ b/openbsc/src/libcommon/common_vty.c
@@ -84,7 +84,7 @@ enum node_type bsc_vty_go_parent(struct vty *vty)
}
break;
case MSC_NODE:
- vty->node = GSMNET_NODE;
+ vty->node = CONFIG_NODE;
break;
case TRUNK_NODE:
vty->node = MGCP_NODE;
@@ -155,7 +155,7 @@ gDEFUN(ournode_exit,
vty->index = NULL;
break;
case MSC_NODE:
- vty->node = GSMNET_NODE;
+ vty->node = CONFIG_NODE;
break;
case TRUNK_NODE:
vty->node = MGCP_NODE;