tree: 809085031607e55ee8c1d1cf05e1e8ed6c4c5669 [path history] [tgz]
  1. descriptor/
  2. rmr/
  3. Dockerfile-Ping
  4. Dockerfile-Pong
  5. Dockerfile-Xapp
  6. Makefile
  7. ping_xapp.py
  8. pong_xapp.py
  9. README.md
  10. restserversimu.py
  11. start.sh
  12. test_route.rt
  13. xapp_subscribe.py
  14. xapp_symptomdata.py
  15. xapp_test.py
examples/README.md

Python xapp frame

Running locally

Running the two examples (adjust for your shell notation)

pip install --user -e .
cd examples
set -x LD_LIBRARY_PATH /usr/local/lib/:/usr/local/lib64; set -x  RMR_SEED_RT test_route.rt; python pong_xapp.py
(diff tmux window)
set -x LD_LIBRARY_PATH /usr/local/lib/:/usr/local/lib64; set -x  RMR_SEED_RT test_route.rt; python ping_xapp.py

Running in Docker

docker build -t ping:latest -f  Dockerfile-Ping .
docker build -t pong:latest -f  Dockerfile-Pong .
docker run -i --net=host ping:latest
docker run -i --net=host pong:latest