Sorry, my output was corrupted:

so here the code again for setting queues:

     from ryu.lib.ovsimport bridge
Konsole output ovsdb_bridge= bridge.OVSBridge(conf, datapath.id, 
config_path)
     ovsdb_bridge.set_qos(
         "eth0",
         queues=[{'min-rate': '10000', 'max-rate': 
'100000'},{'min-rate': '500000'}],
         max_rate="100000000")



And here for enabling the ovsdb manager:

     ovs-vsctl set-manager ptcp:127.0.0.1:6632



Here to lookup linux-htb queues:

     tc -s class show dev eth0


Am 06.07.2015 um 10:24 schrieb Valentin:
> Hi,
>
> you need an ovsdb bridge object:
>
> from ryu.lib.ovsimport bridge
>
> ovsdb_bridge= bridge.OVSBridge(conf, datapath.id, config_path)
> Konsole outpthe "conf" can be obtained from RyuApp.self.conf.
> the "config_path" must be for example "tcp:127.0.0.1:6632", but you 
> have to open the manager for that port. You can do this in your 
> terminal with "ovs-vsctl set-manager ptcp:127.0.0.1:6632".
> Konsole outpu
>
> then, for a specific port you have to set the qos-entry. For example 
> like this:
>
> ovsdb_ovsdb.set_qos(
>     "eth0",
>     queues=[{'min-rate': '10000', 'max-rate': '100000'},{'min-rate': 
> '500000'}],
>     max_rate="100000000")
>
> This will setup 2 queues for port "eth0". The first queue will have 
> 10kbit/s min-rate and 100kbit/s max-rate,
> the second queue only has a min-rate of 500kbit/s. The max-rate QoS 
> for port "eth0" limits "eth0" to 100Mbit/s
> Konsole outp
>
> Ovsdb will use linux-htb to implement the queues. So you when you type 
> "tc -s class show dev eth0" in your terminal you can see if the 
> linux-htb queues are set up properly.
>  Konsole output
>
> Kind Regards Valentin
> Am 06.07.2015 um 06:57 schrieb [email protected]:
>> Helle all,
>>         I failed to set queues to openvswitch port by ovsdb in ryu. 
>> could someone give me an example?
>>                I have tried the rest_qos.py app. For QoS, it is ok.  
>> But, it is not OK for queues.
>>
>>
>>
>>
>>
>> Best Regards
>> Haixiang Yang
>
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to