Kat | a8ee6bb | 2013-04-05 17:06:30 +0200 | [diff] [blame] | 1 | Building/installation: |
| 2 | sudo python setup.py install |
| 3 | If you prefer to have it cleanly removable, install checkinstall and run |
| 4 | sudo checkinstall python setup.py install |
Max | e732c2c | 2017-11-23 16:42:59 +0100 | [diff] [blame^] | 5 | Alternatively, just run 'pip install --user -e ./' or 'pip3 install --user -e ./' |
| 6 | depending on your python version. |
Kat | a8ee6bb | 2013-04-05 17:06:30 +0200 | [diff] [blame] | 7 | |
| 8 | Use |
Max | e732c2c | 2017-11-23 16:42:59 +0100 | [diff] [blame^] | 9 | There are currently following scripts in this package: |
Kat | a8ee6bb | 2013-04-05 17:06:30 +0200 | [diff] [blame] | 10 | osmodumpdoc.py - dump documentation (the VTY's "show online-help"). |
| 11 | osmotestconfig.py - test that apps start/write with example configs |
| 12 | osmotestvty.py - test vty operations (currently, tests very few) |
Max | e732c2c | 2017-11-23 16:42:59 +0100 | [diff] [blame^] | 13 | soap.py - implementation of SOAP <-> Ctrl proxy implemented on top of Twisted |
Kat | a8ee6bb | 2013-04-05 17:06:30 +0200 | [diff] [blame] | 14 | |
| 15 | Each of these scripts imports a project-specific osmoappdesc.py, |
| 16 | which provides information about the available apps, configs, vty ports, etc. |
| 17 | |
| 18 | Run the scripts with osmoappdesc.py in the current directory (preferred) |
| 19 | or with -p <the directory containing osmoappdesc.py>. |
| 20 | Remember that osmoappdesc.py may contain relative paths. |
| 21 | |
| 22 | Example: |
| 23 | After install osmodumpdoc for openbsc's apps can be run by: |
| 24 | cd <your_source_dir>/openbsc/openbsc && osmodumpdoc.py |
| 25 | |
| 26 | Libraries: |
| 27 | osmopy/obscvty.py - connect to a vty, run commands on it, see the result |
| 28 | osmopy/osmoutil.py - code that's shared between the scripts |
Max | e732c2c | 2017-11-23 16:42:59 +0100 | [diff] [blame^] | 29 | osmopy/osmo_ipa.py - generic implementation of IPA and Ctrl protocols in python |
| 30 | twisted_ipa.py - implementation of IPA and Ctrl protocols on top of Twisted framework |
Kat | a8ee6bb | 2013-04-05 17:06:30 +0200 | [diff] [blame] | 31 | |
| 32 | obscvty.py may be of general use. osmoutil.py probably isn't. |