Hi list,

1. On your wiki, you mention that you plan to replace dpset with topology. 
What's the status now? Is topology usable already? And if yes, how to 
replace a line like:

   @handler.set_ev_cls(dpset.EventDP, dpset.DPSET_EV_DISPATCHER)

with topology?

2. in the OpenFlow example on the wiki, you use the following handler 
line:

    @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)

Also, several scripts in the ryu source code use 
ofp_event.EventOFPPacketIn.
However, I cannot find it defined anywhere in ofp_event. Why?

3. If I use my script, which works perfectly fine with OF 1.2 and want to 
test it with 1.3, the

 @handler.set_ev_cls(dpset.EventDP, dpset.DPSET_EV_DISPATCHER)

actually causes an exception:

hub: uncaught exception: Traceback (most recent call last):
  File 
"/usr/local/lib/python2.7/dist-packages/ryu-1.9-py2.7.egg/ryu/lib/hub.py", 
line 50, in _launch
    func(*args, **kwargs)
  File 
"/usr/local/lib/python2.7/dist-packages/ryu-1.9-py2.7.egg/ryu/base/app_manager.py",
 
line 104, in _event_loop
    handler(ev)
  File 
"/usr/local/lib/python2.7/dist-packages/ryu-1.9-py2.7.egg/ryu/controller/dpset.py",
 
line 164, in switch_features_handler
    datapath.ports = msg.ports
AttributeError: 'OFPSwitchFeatures' object has no attribute 'ports'

How to fix this?

Cheers and Thanks!
Arne

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to