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?

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

Reply via email to