aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/vty.h
AgeCommit message (Collapse)AuthorFilesLines
2017-06-09don't re-implement osmo_talloc_replace_string()Harald Welte1-1/+0
osmo_talloc_replace_string() was introducd into libosmocore in 2014, see commit f3c7e85d05f7b2b7bf093162b776f71b2bc6420d There's no reason for us to re-implement this as bsc_replace_string here. Change-Id: I6d2fcaabbc74730f6f491a2b2d5c784ccafc6602
2017-02-08vty: remove ignored logging parametersMax1-1/+1
Since ce9fec3e896571835ac5bfd2980d6836f2b29f0d libosmocore ignores parameters to log_vty_command_* functions. Hence parameter of logging_vty_add_cmds() is ignored too. As we depend on much later libosmocore version anyway, we can simplify code somewhat by removing parameters which will be ignored anyway. Change-Id: I62f752fd88f1d8fefa563648f9864c7c31f87991
2016-11-13Support configuration of CON MO Groups/Paths from VTYHarald Welte1-0/+1
The code for supporting the configuration of the OM2000 CON (LAPD Concentrator) MO was so far incomplete and not used from the OM2000 FSM initialization. This patch adds * VTY commands for configuration of CON Groups and Paths * The FSM integration to actually configure the CON MO Change-Id: I56dc1b5e35adef3a2078bcf9536537eb0f454192
2016-09-26mscsplit: abis vty: decouple from global bsc_gsmnet variableNeels Hofmeyr1-0/+2
Publish gsmnet_from_vty() in openbsc/vty.h and use in the abis VTY functions. Change-Id: Ib65a18db06b8bc4fc7d56bf56dd64a52cc1cd253
2016-09-26mscsplit: bsc_vty_init(): decouple from global bsc_gsmnetNeels Hofmeyr1-1/+1
Add an explicit gsm_network pointer instead of using the bsc_gsmnet global. This allows passing a gsm_network struct from the main() scope, which helps to decouple libmsc from libbsc. Change-Id: I9e2c0d9c18d4cebb5efb71565ad84df2bc2e0251
2015-11-16Add GTP hub initial code base.Neels Hofmeyr1-0/+1
First steps towards a new GTP hub. The aim is to mux GTP connections, so that multiple SGSN <--> GGSN links can pass through a single point. Background: allow having more than one SGSN, possibly in various remote locations. The recent addition of OAP to GSUP is related to the same background idea. (This is a collapsed patch of various changes that do not make sense to review in chronological order anymore, since a lot of it has thorougly transmorphed after it was first committed.) Sponsored-by: On-Waves ehf
2015-01-27nitb: Make the last change configurableHolger Hans Peter Freyther1-0/+1
Introduce a NITB node and add the subscriber creation as config name in there.
2013-10-30vty: Use vty_install_default() instead of bsc_install_default()Jacob Erlbeck1-4/+0
Remove ournode_exit_cmd, ournode_end_cmd, and bsc_install_default() since this functionality is provided by the current libosmocore. Replace calls to bsc_install_default() by call to vty_install_default() with the following semantic patch: @rule1@ expression N; @@ - bsc_install_default(N); + vty_install_default(N); Ticket: OW#952 Sponsored-by: On-Waves ehf
2013-09-02vty: Use generic 'end' and 'exit' commandsJacob Erlbeck1-0/+2
Add bsc_install_default() and replace all install_default() This patch adds bsc_install_default() which calls install_default() and add 'exit' and 'end'. All other calls to install_default() are replaced by calls to bsc_install_default(). Since 'exit' and 'end' are now added automatically to each node, the explicit registrations of these commands are removed by this patch, too. The related tests succeed now without work-arounds (except for the 'config' node itself which is part of libosmocore).
2012-11-24SMPP: VTY configuration of SMPP code, authentication supportHarald Welte1-0/+2
2012-09-11bsc: Allow to configure more than one MSC in the VTYHolger Hans Peter Freyther1-0/+1
2012-06-16libgb: remove dependencies to openbsc/vty.h and openbsc/gsm_data.hHarald Welte1-2/+0
Rather than using openbsc internal data/functions, we now use only internal and libosmocore-provided ones.
2011-09-03Add VTY command to specify default speech codecHarald Welte1-0/+1
In order to have the MNCC application reliably decide on the codec type, it needs to know if we are running on a TCH/F or TCH/H. Thus, we pass lchan_mode as a new parameter to the 'struct gsm_mncc'
2011-08-19src: port openBSC over libosmo-abis0.9.15Pablo Neira Ayuso1-1/+0
This is a big patch that ports openBSC over libosmo-abis. Sorry, the changes that are included here are all dependent of libosmo-abis, splitting them into smaller pieces would leave the repository in some intermediate state, which is not desired. The main changes are: - The directory libabis/ has been removed as it now lives in libosmo-abis. - new configuration file format for nanoBTS and HSL femto, we need to define the virtual e1_line and attach it to the OML link. - all the existing BTS drivers (nanoBTS, hsl femto, Nokia site, BS11 and rbs2000) now use the new libosmo-abis framework. - use r232 input driver available in libosmo-abis for bs11_config. - use ipa_msg_recv instead of old ipaccess_read_msg function. - delete definition of gsm_e1_subslot and input_signal_data. These structures now lives in libosmo-abis. Most of this patch are deletions of libabis/ which has been moved to libosmo-abis. This patch also modifies openBSC to use all the new definitions available in libosmocore and libosmo-abis. In order to do that, we have replaced the following: - DINP, DMI, DMIB and DMUX by their respective DL* correspondences. - SS_GLOBAL by SS_L_GLOBAL - SS_INPUT by SS_L_INPUT - S_GLOBAL_SHUTDOWN by S_L_GLOBAL_SHUTDOWN - SS_INPUT by SS_L_INPUT - S_INP_* by S_L_INP_* sub-signals - E1INP_NODE by L_E1INP_NODE vty node This patch has been tested with: - one nanoBTS - the HSL femto with the examples available under libosmo-abis - BS11 with both dahdi and misdn drivers.
2011-05-02nat: Create a Paging Group that BSCs can refer toHolger Hans Peter Freyther1-0/+1
Introduce a paging group that a BSC can refer to and is used during the LAC lookup. This way paging can be flooded through the network and just filtered at the last element in the core.
2011-03-19bsc: change bsc_vty_init to take logging categories as parameterPablo Neira Ayuso1-1/+2
This change is required to finish the integration of the VTY and the per-application logging categories that provides: "vty: integration with logging framework" in libosmocore. It has been tested with osmo-nitb. The other just compiled tested.
2011-02-28mgcp: Introduce a trunk config for multiple trunks.Holger Hans Peter Freyther1-0/+1
A trunk will always have 32 endpoints to be used and we allow a sparse allocation of endpoints.
2011-02-19Fix various compiler warnings all over the codeHarald Welte1-0/+3
2011-02-13OM2000: Introduce VTY commands to initiate OM2000 proceduresHarald Welte1-0/+1
2011-02-05[E1 INPUT] explicitly configure the E1 input driver for each lineHarald Welte1-0/+1
This introduces a new 'e1_input' config node with a command to be used like: e1_line 0 driver misdn This allows us to have different input drivers in the future
2010-10-12misc: Replace the idiom for replacing a string with a function callHolger Hans Peter Freyther1-0/+1
Remove a lot of code in favor of a new function that is freeing the old string and copying the new one. I should have gotten the context and the strings right.
2010-09-15bsc: Register a new MSC group with data for the MSC connectionHolger Hans Peter Freyther1-0/+1
This group contains everything that is related to the MSC connections.
2010-08-26vty: Provide a is_config_node for the VTY and use it for the bscHolger Hans Peter Freyther1-0/+2
Right now only bsc_hack and osmo_bsc need to have a custom config handling as they use the subscr/oml nodes.
2010-08-04vty: Remove the logging command that is in libosmocoreHolger Hans Peter Freyther1-1/+0
2010-06-17nat: Rename BSC_NODE to NAT_BSC_NODE to avoid future issues.Holger Hans Peter Freyther1-1/+1
2010-06-15nat: Add NAT_NODE and BSC_NODE for the natHolger Hans Peter Freyther1-0/+2
Implement the go to parent and exit functions for the nat.
2010-05-31VTY: libosmocore >= 0.1.9 doesn't define BSC specific VTY nodes anymoreHarald Welte1-0/+15
2010-05-25Migrate VTY code to libosmovtyHarald Welte1-2/+2
2010-05-23vty: The method got renamed, fix various compiler warnings.Holger Hans Peter Freyther1-1/+1
2010-05-14[VTY] Introduce "end" command that works from any level in configHarald Welte1-0/+1
Using "end" you can always return to the "enable" level, and from there the "show" commands are available. So no more need for exit/exit/exit/exit/disable.
2010-05-14[VTY] Remove OpenBSC specific node-exit handling from src/vtyHarald Welte1-0/+1
The idea is to move the VTY code into libosmocore at some point, and for that we need to eliminate OpenBSC specifics from it
2010-05-14VTY: Introduce common code to add 'description' to objects like BTSHarald Welte1-0/+8
There is now an option to add a human-readable description to objects that are configured in the VTY.
2010-04-15[vty] Separate BSC and MSC statistics. Make it easy to print them.Holger Hans Peter Freyther1-0/+4
Move the statistics command into the MSC part and move the BSC statistics printing into a subroutine.
2010-04-06[vty] Move the VTY logging commands to a new fileHolger Hans Peter Freyther1-0/+6
Currently vty_interface.c is used for the BSC config, in case of the MGCP Gateway or the BSC Nat process these logging commands are not available. Move the commands to a new vty_interface_cmds.c file to allow to share basic commands across different programs.