diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-14 18:59:17 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-14 18:59:17 +0200 |
commit | 62ab20c5dd85bb8c14a44af73b674494447318e7 (patch) | |
tree | b030427bde17387c6159d8712d74f91bf62edfa5 /openbsc/src/vty_interface.c | |
parent | 197dea95ff55acd86d5800f5a1cf7e339b24064d (diff) |
[VTY] Remove OpenBSC specific node-exit handling from src/vty
The idea is to move the VTY code into libosmocore at some point,
and for that we need to eliminate OpenBSC specifics from it
Diffstat (limited to 'openbsc/src/vty_interface.c')
-rw-r--r-- | openbsc/src/vty_interface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c index 8af91535b..0ceab5b03 100644 --- a/openbsc/src/vty_interface.c +++ b/openbsc/src/vty_interface.c @@ -1954,6 +1954,7 @@ int bsc_vty_init(struct gsm_network *net) install_element(CONFIG_NODE, &cfg_net_cmd); install_node(&net_node, config_write_net); install_default(GSMNET_NODE); + install_element(GSMNET_NODE, &ournode_exit_cmd); install_element(GSMNET_NODE, &cfg_net_ncc_cmd); install_element(GSMNET_NODE, &cfg_net_mnc_cmd); install_element(GSMNET_NODE, &cfg_net_name_short_cmd); @@ -1986,6 +1987,7 @@ int bsc_vty_init(struct gsm_network *net) install_element(GSMNET_NODE, &cfg_bts_cmd); install_node(&bts_node, config_write_bts); install_default(BTS_NODE); + install_element(BTS_NODE, &ournode_exit_cmd); install_element(BTS_NODE, &cfg_bts_type_cmd); install_element(BTS_NODE, &cfg_description_cmd); install_element(BTS_NODE, &cfg_no_description_cmd); @@ -2023,6 +2025,7 @@ int bsc_vty_init(struct gsm_network *net) install_element(BTS_NODE, &cfg_trx_cmd); install_node(&trx_node, dummy_config_write); install_default(TRX_NODE); + install_element(TRX_NODE, &ournode_exit_cmd); install_element(TRX_NODE, &cfg_trx_arfcn_cmd); install_element(TRX_NODE, &cfg_description_cmd); install_element(TRX_NODE, &cfg_no_description_cmd); @@ -2035,6 +2038,7 @@ int bsc_vty_init(struct gsm_network *net) install_element(TRX_NODE, &cfg_ts_cmd); install_node(&ts_node, dummy_config_write); install_default(TS_NODE); + install_element(TS_NODE, &ournode_exit_cmd); install_element(TS_NODE, &cfg_ts_pchan_cmd); install_element(TS_NODE, &cfg_ts_e1_subslot_cmd); |