Hi,

When sending a multipart message of type OFPMP_GROUP, the expected reply is not 
processed correctly. The openflow stack sends back a Group reply, but on the 
Ryu side this leads to an AttributeError. Commenting out the offending line 
gives proper functionality with correct variables able to be printed.

I also noticed that the GroupStatsRequest does not include a bucket_counter (as 
defined in the standard v1_3_1, page 85). Are there any plans to include this?

Debug:

7: Sending multipart request, type:OFPMP_GROUP
Error in the datapath 0000399885270008 from ('127.0.0.1', 59999)
hub: uncaught exception: Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/ryu/lib/hub.py", line 48, in 
_launch
    func(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/ryu/controller/controller.py", 
line 312, in datapath_connection_factory
    datapath.serve()
  File "/usr/local/lib/python2.6/dist-packages/ryu/controller/controller.py", 
line 232, in serve
    self._recv_loop()
  File "/usr/local/lib/python2.6/dist-packages/ryu/controller/controller.py", 
line 97, in deactivate
    method(self)
  File "/usr/local/lib/python2.6/dist-packages/ryu/controller/controller.py", 
line 165, in _recv_loop
    version, msg_type, msg_len, xid, buf)
  File "/usr/local/lib/python2.6/dist-packages/ryu/ofproto/ofproto_parser.py", 
line 54, in msg
    return msg_parser(datapath, version, msg_type, msg_len, xid, buf)
  File 
"/usr/local/lib/python2.6/dist-packages/ryu/ofproto/ofproto_v1_3_parser.py", 
line 51, in msg_parser
    return parser(datapath, version, msg_type, msg_len, xid, buf)
  File 
"/usr/local/lib/python2.6/dist-packages/ryu/ofproto/ofproto_v1_3_parser.py", 
line 3384, in parser
    b = stats_type_cls.cls_stats_body_cls.parser(msg.buf, offset)
  File 
"/usr/local/lib/python2.6/dist-packages/ryu/ofproto/ofproto_v1_3_parser.py", 
line 3983, in parser
    stats.length = ofproto_v1_3.OFP_GROUP_STATS_SIZE
AttributeError: can't set attribute

Line 3983 in ofproto_v1_3_parser.py is the line that I have commented out to 
allow the test to proceed. I hope this is a simple bug, but please let me know 
if you need any more information.

Thanks,
Adam Humphreys

Reception : +44 (0)28 9072 5000
Fax : +44 (0)28 9072 5001

www.asidua.com

Registered in Northern Ireland No. 043987

Office Locations: Belfast  Birmingham Dublin

We only send and receive email on the basis of the term set out at 
www.asidua.com/portal/email-disclaimer
Please consider the impact on the environment before printing this e-mail

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to