blob: b85f7c95ff16c9225f0f72ab80d0ad46a6721566 [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
Max32d0fd82016-03-30 14:58:15 +02005Alternatively, just run 'pip install --user -e ./'
Kata8ee6bb2013-04-05 17:06:30 +02006
7Use
8There are currently 3 scripts in this package:
9osmodumpdoc.py - dump documentation (the VTY's "show online-help").
10osmotestconfig.py - test that apps start/write with example configs
11osmotestvty.py - test vty operations (currently, tests very few)
12
13Each of these scripts imports a project-specific osmoappdesc.py,
14which provides information about the available apps, configs, vty ports, etc.
15
16Run the scripts with osmoappdesc.py in the current directory (preferred)
17or with -p <the directory containing osmoappdesc.py>.
18Remember that osmoappdesc.py may contain relative paths.
19
20Example:
21After install osmodumpdoc for openbsc's apps can be run by:
22cd <your_source_dir>/openbsc/openbsc && osmodumpdoc.py
23
24Libraries:
25osmopy/obscvty.py - connect to a vty, run commands on it, see the result
26osmopy/osmoutil.py - code that's shared between the scripts
27
28obscvty.py may be of general use. osmoutil.py probably isn't.