Hi,

Currently, OVS does not support OF1.5 enough.
Please check the OF support status of OVS.
There are many TODOs with OF1.5.
  https://github.com/openvswitch/ovs/blob/master/OPENFLOW-1.1%2B.md

Thanks,
Iwase

On 2015年10月18日 07:53, Anees Mohsin Hadi Al-Najjar wrote:
> Hi,
> Actually, I have a problem with Ryu and OF 1.5 as well, even though I have 
> the latest version of OVS which is 2.4. But it is different.
> 
> I am trying to connect OVS switch working in OpenFlow 1.5 with Ryu, but I 
> couldn’t.
> I have got this error:
> 
> 
> loading app ryu.controller.ofp_handler
> instantiating app /home/ubuntu/Desktop/2h-rc.py of My_Ryu
> instantiating app ryu.controller.ofp_handler of OFPHandler
> BRICK My_Ryu
>   CONSUMES EventOFPSwitchFeatures
> BRICK ofp_event
>   PROVIDES EventOFPSwitchFeatures TO {'My_Ryu': set(['config'])}
>   CONSUMES EventOFPPortDescStatsReply
>   CONSUMES EventOFPErrorMsg
>   CONSUMES EventOFPHello
>   CONSUMES EventOFPEchoRequest
>   CONSUMES EventOFPSwitchFeatures
> connected socket:<eventlet.greenio.GreenSocket object at 0x7fa334a2df90> 
> address:('127.0.0.1', 60598)
> hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x7fa334a3d390>
> move onto config mode
> EVENT ofp_event->My_Ryu EventOFPSwitchFeatures
> switch features ev version: 0x6 msg_type 0x6 xid 0xa1a836b5 
> OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=3,n_buffers=256,n_tables=254)
> error msg ev version: 0x6 msg_type 0x1 xid 0xa1a836b7 
> OFPErrorMsg(code=6,data='\x06\x12\x00\x10\xa1\xa86\xb7\x00\r\x00\x00\x00\x00\x00\x00',type=1)
>  type 0x1 code 0x6 0x6 0x12 0x0 0x10 0xa1 0xa8 0x36 0xb7 0x0 0xd 0x0 0x0 0x0 
> 0x0 0x0 0x0
> 
> 
> I tried that with OpenFlow 1.4 and earlier and it works.
> 
> Could you possibly tell me how can I fix this problem?
> 
> Thanks
> 
> Anees
> 
> 
> 
> 
> -----Original Message-----
> From: Yusuke Iwase [mailto:[email protected]] 
> Sent: Friday, 16 October 2015 10:47 AM
> To: [email protected]
> Cc: [email protected]
> Subject: Re: [Ryu-devel] Problem with RYU and OF 1.5
> 
> Hi,
> 
> On 2015年10月15日 21:52, Daniel Herrmann wrote:
>> Hi,
>>
>> I updated RYU today to the latest version and tried to migrate my App to 
>> OpenFlow 1.5. Basically I changed the import to:
>>
>> from ryu.ofproto import ofproto_v1_5
>>
>> and then changed the OFP_VERSIONS attribute in my class to:
>>
>> OFP_VERSIONS = [ofproto_v1_5.OFP_VERSION]
>>
>> If I start the App now, the following error appears:
>>
>> --- snip ---
>> root@controller:~# ryu-manager SegmentRoutingController.py loading app 
>> SegmentRoutingController.py loading app ryu.app.ofctl.service loading 
>> app ryu.topology.switches loading app ryu.controller.ofp_handler 
>> instantiating app ryu.app.ofctl.service of OfctlService instantiating 
>> app ryu.topology.switches of Switches instantiating app 
>> SegmentRoutingController.py of SimpleSwitch Traceback (most recent 
>> call last):
>>   File "/usr/local/bin/ryu-manager", line 9, in <module>
>>     load_entry_point('ryu==3.26', 'console_scripts', 'ryu-manager')()
>>   File "/usr/local/lib/python2.7/dist-packages/ryu/cmd/manager.py", line 91, 
>> in main
>>     services.extend(app_mgr.instantiate_apps(**contexts))
>>   File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py", 
>> line 484, in instantiate_apps 
>>     self._instantiate(app_name, cls, *args, **kwargs)
>>   File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py", 
>> line 466, in _instantiate
>>     ofproto_protocol.set_app_supported_versions(cls.OFP_VERSIONS)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_protocol.py", 
>> line 46, in set_app_supported_versions
>>     assert _supported_versions, 'No OpenFlow version is available'
>> AssertionError: No OpenFlow version is available
>> --- snap ---
>>
>> Any idea to solve this issue?
> 
> Which switch are you using?
> The above messages shows no available version in the Hello message which sent 
> from your switch.
> 
> By this setting(OFP_VERSIONS = [ofproto_v1_5.OFP_VERSION]), Ryu sends the 
> Hello message with:
>     OF1.0  X
>     ...
>     OF1.4  X
>     OF1.5  Supported  <--
> But, your switch may send with:
>     OF1.0  ?
>     ...
>     OF1.4  ?
>     OF1.5  X Not supported  <--
> 
> Please confirm your switch supports OpenFlow1.5.
> 
> Thanks,
> Iwase
> 
> 
>>
>> Thanks and regards
>> Daniel
>>
>>
>> ----------------------------------------------------------------------
>> --------
>>
>>
>>
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to