Hi, Douglas
Ryu has ofctl_rest.py, which is a sample application and provides REST
API to get flow statistics.
http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html
I think it is better to use ofctl_rest.py than to implement your own
REST API in your app.
Thanks,
Fujimoto
On 2017年06月06日 21:18, Douglas Harewood-Gill wrote:
Greetings I am a PhD student new to both Python and Ryu and I was
wondering if anyone could give me some advice.
I am using the Ryu controller program (L2DestForwardStaticRyu.py)
provided by Dr Grey Bernstein
(https://www.grotto-networking.com/SDNfun.html#programming-switches-with-ryu)
for shortest path computation for a full Mesh network in Mininet but
the example provided does not include REST which I require to be able
to collect flow statistics such as the flows in each router,
bandwidth, latency, etc.
Unfortunately I have been looking and with the exception of
(https://osrg.github.io/ryu-book/en/html/rest_api.html) which seems
overly specific, I am unable to find a good example that would allow
me to work out how to integrate REST into the above Ryu control program.
So if anyone can point me in the right direction or can provide some
examples, I would be most grateful.
Thank you for your time.
Best Regards
Douglas
--
*Douglas Harewood-Gill MSc MIET*
CDT Student in Communications (PhD), University of Bristol
Post-Graduate Student (Taught and Research)
e-mail: douglas.harewood-g...@bristol.ac.uk
<mailto:douglas.harewood-g...@bristol.ac.uk>
*
CDT Communications*
University of Bristol, Merchant Venturers' Building, Woodland Road,
Clifton, Bristol. BS8 1UB
http://www.bristol.ac.uk/
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel