blob: 2c0404734de3269cf27325fd0a813a395e71d635 [file] [log] [blame]
Kata8ee6bb2013-04-05 17:06:30 +02001Building/installation:
2sudo python setup.py install
3If you prefer to have it cleanly removable, install checkinstall and run
4sudo checkinstall python setup.py install
Maxe732c2c2017-11-23 16:42:59 +01005Alternatively, just run 'pip install --user -e ./' or 'pip3 install --user -e ./'
6depending on your python version.
Kata8ee6bb2013-04-05 17:06:30 +02007
8Use
Maxe732c2c2017-11-23 16:42:59 +01009There are currently following scripts in this package:
Kata8ee6bb2013-04-05 17:06:30 +020010osmotestconfig.py - test that apps start/write with example configs
Maxe732c2c2017-11-23 16:42:59 +010011soap.py - implementation of SOAP <-> Ctrl proxy implemented on top of Twisted
Max34d2ca52018-01-12 16:41:24 +010012osmo_rate_ctr2csv.py - rate counter dumper on top of osmo_ipa
Neels Hofmeyre5731e02017-12-19 14:48:29 +010013osmo_interact_vty.py - pipe stdin/stdout to a VTY session
14osmo_interact_ctrl.py - pipe stdin/stdout to a CTRL port
15osmo_verify_transcript_vty.py - VTY testing by VTY session screen dumps
16osmo_verify_transcript_ctrl.py - CTRL testing by CTRL session script files
Neels Hofmeyr4c283e42017-12-19 14:49:13 +010017twisted_ipa.py - implementation of IPA and Ctrl protocols on top of Twisted framework
Neels Hofmeyre5731e02017-12-19 14:48:29 +010018osmodumpdoc.py - dump documentation, superseded by osmo_interact_vty.py -X
19osmotestvty.py - test vty operations, superseded by osmo_verify_transcript_vty.py
Kata8ee6bb2013-04-05 17:06:30 +020020
21Each of these scripts imports a project-specific osmoappdesc.py,
22which provides information about the available apps, configs, vty ports, etc.
23
24Run the scripts with osmoappdesc.py in the current directory (preferred)
25or with -p <the directory containing osmoappdesc.py>.
26Remember that osmoappdesc.py may contain relative paths.
27
28Example:
29After install osmodumpdoc for openbsc's apps can be run by:
30cd <your_source_dir>/openbsc/openbsc && osmodumpdoc.py
31
32Libraries:
Kata8ee6bb2013-04-05 17:06:30 +020033osmopy/osmoutil.py - code that's shared between the scripts
Maxe732c2c2017-11-23 16:42:59 +010034osmopy/osmo_ipa.py - generic implementation of IPA and Ctrl protocols in python
Neels Hofmeyre5731e02017-12-19 14:48:29 +010035osmopy/osmo_interact/{vty,ctrl}.py - general interactions with VTY and CTRL ports
36osmopy/obscvty.py - connect to a vty, superseded by osmo_interact/vty
Kata8ee6bb2013-04-05 17:06:30 +020037
38obscvty.py may be of general use. osmoutil.py probably isn't.