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