Hi Kunal,

As far as I know, "ryu.lib.ovs.*" library is not documented well.
Currently, to read the docstring of OVSBridge class is the shortest way to 
understand it, I guess...

Thanks,
Iwase


On 2017年02月24日 14:38, Kunal Goswami wrote:
> Hi Iwase, 
>               Thank you for the prompt reply. Actually, I have inherited from 
> the QoS and QoSOfsList classes declared in the rest_qos.py. I modified those 
> two classes to work with my code and I’m trying to make that work with the 
> events I have. But I’ll definitely try what you suggested. Is there any place 
> where I can find documentation about RYU’s code? I searched the internet but 
> I didn’t find much. 
> 
> Regards,
> Kunal Goswami
> 
> 
> 
> 
>> On Feb 23, 2017, at 9:24 PM, Iwase Yusuke <[email protected]> wrote:
>>
>> Hi Kunal,
>>
>> You want to know how to create OVSDB message in your app, right?
>> If so, I recommend you to create an instance of 
>> ryu.lib.ovs.bridge.OVSBridge()
>> and use the utility methods of this class.
>>  https://github.com/osrg/ryu/blob/master/ryu/lib/ovs/bridge.py#L92
>>
>> Usage Example:
>>  from ryu.cfg import CONF
>>  from ryu.lib.ovs.bridge import OVSBridge
>>
>>  ovs_bridge = OVSBridge(CONF, 1, "tcp:127.0.0.1:6632")
>>
>>  ovs_bridge.set_qos(...)
>>
>> Thanks,
>> Iwase
>>
>> On 2017年02月24日 12:42, Kunal Goswami wrote:
>>> Hello, 
>>> I am trying to bypass the REST API and write an internal method call which 
>>> can set the QoS parameters. However, I’m getting the error “ovs bridge is 
>>> not exists” every single time. Now, I know that message is showing up 
>>> because of the “Register Ovsdb address” step shown in the RYU Book. But I 
>>> want to make a CLI call or an internal method call instead of the following 
>>> PUT request to achieve that: 
>>>
>>> # curl -X PUT -d '"tcp:127.0.0.1:6632"' 
>>> http://localhost:8080/v1.0/conf/switches/0000000000000001/ovsdb_addr
>>>
>>>
>>> Can anyone please help me to see how I can go about it? I tried calling 
>>> QoS.set_ovsdb_addr() method internally but it does not work either. 
>>>
>>> Thanks, 
>>> Regards,
>>> Kunal Goswami
>>>
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>>> [email protected]
>>> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to