Hi all, I have started to get ready for teaching networking in the Fall (including a few weeks on SDN) by expanding some of my teaching materials to include Ryu . See this page <http://www.grotto-networking.com/SDNfun.html#doing-more-with-ryu-an-outline-application> a walk through an example “outline” application. If anyone else has been using Ryu in a teaching situation I would like to hear about it.

In my case keeping the code small and making it easy for students to try different scenarios/experiments was crucial. The outline application <http://www.grotto-networking.com/code/SDNfun/OutlineAppRyu.py> I came up with for my students allows them to:

1. Add command line parameters when starting their programs (using
   Ryu’s built in config system),
2. Access a python command line interface to allow them to inspect,
   execute app methods, and debug their app (used Eventlet’s “backdoor”
   module).

To get this functionality without making any changes to Ryu, I directly call the |ryu.cmd.manager.main(...)| from my Python code rather than via the |ryu-manager| program. Didn’t see this documented anywhere but seems to work well with appropriate |if __name__ == "__main__":| guards. Note that the easy /pip/ install of Ryu is very helpful for teaching!

Any comments are appreciated. Thanks for the work on Ryu.

Cheers
Greg B.

------------------------------------------------------------------------

/Dr. Greg M. Bernstein/

​
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to