This patch series provide GUI.
You can monitor topology and flows.
Changes v1 -> v2:
- some bugfixes
- code cleanup
- add GUI test using Selenium
Usage:
1. Run ryu with topology and ofctl REST
$ PYTHONPATH=. ./bin/ryu-manager --verbose --observe-links \
./ryu/topology/switches.py \
./ryu/app/rest_topology.py \
./ryu/app/ofctl_rest.py
2. Run GUI web server
$ PYTHONPATH=. ./ryu/gui/controller.py
3. Access to http://127.0.0.1:8000
YAMADA Hideki (5):
GUI support
GUI: import perfect-scrollbar.js
pip-requires: flask, gevent-websocket for GUI
tests/topology: add test for GUI
test-requires: selenium for GUI test
ryu/gui/controller.py | 93 +++
ryu/gui/models/proxy.py | 56 ++
ryu/gui/models/topology.py | 277 +++++++++
ryu/gui/static/css/ryu.css | 367 +++++++++++
ryu/gui/static/img/ryu_logo.gif | Bin 0 -> 2034 bytes
ryu/gui/static/img/switch.png | Bin 0 -> 46690 bytes
ryu/gui/static/img/ui-bg_org_0070c0.png | Bin 0 -> 464 bytes
ryu/gui/static/js/contrib/jquery.mousewheel.js | 84 +++
ryu/gui/static/js/contrib/perfect-scrollbar.js | 313 ++++++++++
ryu/gui/static/js/ryu.js | 783 ++++++++++++++++++++++++
ryu/gui/templates/base.html | 26 +
ryu/gui/templates/topology.html | 81 +++
ryu/gui/views/flow.py | 88 +++
ryu/gui/views/topology.py | 26 +
ryu/gui/views/view_base.py | 37 ++
ryu/gui/views/websocket.py | 174 ++++++
ryu/tests/topology/auto_topo.py | 204 ++++++
ryu/tests/topology/gui_client/gui_elements.py | 323 ++++++++++
ryu/tests/topology/gui_client/gui_test.py | 571 +++++++++++++++++
ryu/tests/topology/gui_client/test_chrome.py | 35 ++
ryu/tests/topology/gui_client/test_firefox.py | 31 +
ryu/tests/topology/mn_ctl.py | 96 +++
tools/pip-requires | 2 +
tools/test-requires | 1 +
24 files changed, 3668 insertions(+), 0 deletions(-)
create mode 100755 ryu/gui/controller.py
create mode 100644 ryu/gui/models/__init__.py
create mode 100644 ryu/gui/models/proxy.py
create mode 100644 ryu/gui/models/topology.py
create mode 100644 ryu/gui/static/css/ryu.css
create mode 100644 ryu/gui/static/img/ryu_logo.gif
create mode 100644 ryu/gui/static/img/switch.png
create mode 100644 ryu/gui/static/img/ui-bg_org_0070c0.png
create mode 100644 ryu/gui/static/js/contrib/jquery.mousewheel.js
create mode 100644 ryu/gui/static/js/contrib/perfect-scrollbar.js
create mode 100644 ryu/gui/static/js/ryu.js
create mode 100644 ryu/gui/templates/base.html
create mode 100644 ryu/gui/templates/topology.html
create mode 100644 ryu/gui/views/__init__.py
create mode 100644 ryu/gui/views/flow.py
create mode 100644 ryu/gui/views/topology.py
create mode 100644 ryu/gui/views/view_base.py
create mode 100644 ryu/gui/views/websocket.py
create mode 100644 ryu/tests/topology/auto_topo.py
create mode 100644 ryu/tests/topology/gui_client/gui_elements.py
create mode 100644 ryu/tests/topology/gui_client/gui_test.py
create mode 100755 ryu/tests/topology/gui_client/test_chrome.py
create mode 100755 ryu/tests/topology/gui_client/test_firefox.py
create mode 100755 ryu/tests/topology/mn_ctl.py
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel