Hi Faisal,

I guess,  In OVSBridge library, set_qos api is present, which can be used
in your program.

http://ryu.readthedocs.io/en/latest/library_ovsdb.html?highlight=qos#ryu.lib.ovs.bridge.OVSBridge.set_qos

Thanks
Suresh.


On Fri, May 18, 2018 at 2:29 PM, Faisal amin <faisalami...@gmail.com> wrote:

> Hi Iwamoto
>
> Thank you for your email. I was looking for something else without using
> the rest API. Do you have any idea?
>
> Regards
> Faisal
>
> On Fri, May 18, 2018 at 3:30 AM, IWAMOTO Toshihiro <iwam...@valinux.co.jp>
> wrote:
>
>> On Sun, 13 May 2018 20:36:34 +0900,
>> Faisal amin wrote:
>> >
>> > HI Ryu Team,
>> >
>> > I need to provide QoS using ryu controller. I need to configure queue
>> using
>> > OVSDB protocol.I have used following code to provide QoS using OVSDB.
>> But i
>> > want to add matching criteria in this code. Could anyone please help me
>> how
>> > to add matched based criteria in this code. Suppose a host want to
>> connect
>> > another host in a specific port so the QoS will be provided based on
>> this
>> > match. Please somebody help me regarding this.
>>
>> You already seem to have a matching criteria.
>>
>> > import osimport sysimport subprocessfrom time import sleep
>> > #s1
>> > subprocess.call('curl -X PUT -d \'\"tcp:127.0.0.1:6632\"\'
>> > http://localhost:8080/v1.0/conf/switches/0000000000000001/ovsdb_addr
>> ',shell=True)
>> > sleep(5)# subprocess.call('curl -X PUT -d \'\"tcp:127.0.0.1:6632\"\'
>> > http://localhost:8080/v1.0/conf/switches/0000000000000002/ovsdb_addr
>> ',shell=True)#
>> > sleep(2)
>> >    #execute setting of Queue
>> > subprocess.call('curl -X POST -d \'{\"port_name\": \"s1-eth1\",
>> > \"type\": \"linux-htb\", \"max_rate\": \"2800000\", \"queues\":
>> > [{\"max_rate\": \"2800000\"}, {\"min_rate\": \"2500000\"}]}\'
>> > http://localhost:8080/qos/queue/0000000000000001',shell=True)
>> >   #3 QoS Setting to install flow entry
>> > subprocess.call('curl -X POST -d \'{\"match\": {\"nw_dst\":
>> > \"10.0.0.3\", \"nw_proto\": \"TCP\", \"tp_dst\": \"80\"},
>> > \"actions\":{\"queue\": \"1\"}}\'
>>
>> Here. What do you want to achieve?
>>
>> > http://localhost:8080/qos/rules/0000000000000001',shell=True)
>> >   #4 Verify the settings
>> > subprocess.call('curl -X GET
>> > http://localhost:8080/qos/rules/0000000000000001',shell=True)
>>
>>
>> Those references may help you.
>>
>> https://osrg.github.io/ryu-book/en/html/rest_qos.html
>> http://docs.openvswitch.org/en/latest/faq/qos/
>>
>> --
>> IWAMOTO Toshihiro
>>
>
>
> ------------------------------------------------------------
> ------------------
> 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
>
>


-- 

*Regards, *
*Knet solutions.*

https://github.com/knetsolutions/KNet
http://knet-topology-builder.readthedocs.io/
http://knetsolutions.in/
------------------------------------------------------------------------------
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

Reply via email to