On Mon, 29 Dec 2014 04:05:16 +0800
K 華 <[email protected]> wrote:

> I am new in Ryu, and I want to configure OpenvSwitch through Ryu.Can I config 
> OpenvSwitch through message in Ryu?
> For example, I used to config OVS like
> sudo ovs-vsctl -- --id=@sflow create sflow agent=tap1 
> target=\"192.168.1.11:6343\" sampling=2 polling=20 -- -- set bridge br0 
> sflow=@sflow
> 
> Can I try to change the variables like agent=tap1 into tap0, or sampling=2 to 
> 100?
> 
> Or does Ryu has another ability to config OVS?

ovs-vsctl uses OVSDB protocol.

You can find some helper function to handle OVSDB protocol at:

https://github.com/osrg/ryu/tree/master/ryu/lib/ovs

You can find example code to configure QoS via OVSDB:

https://github.com/osrg/ryu/blob/master/ryu/app/rest_qos.py

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to