Hi,
I am using ofctl_rest.py and maybe find a bug.
I used "match = parser.OFPMatch(metadata=(15,255), tunnel_id=(31,255))" as the
match with OpenFlow 1.3.
After that, I used "/stats/flow/<dpid>" of ofctl_rest.py to see the flow
rules. But it returned:
Traceback (most recent call last):
File "/home/weijie/.local/lib/python2.7/site-packages/eventlet/wsgi.py", line
454, in handle_one_response
result = self.application(self.environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/ryu/app/wsgi.py", line 201, in
__call__
return super(wsgify_hack, self).__call__(environ, start_response)
File "/home/weijie/.local/lib/python2.7/site-packages/webob/dec.py", line
130, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/home/weijie/.local/lib/python2.7/site-packages/webob/dec.py", line
195, in call_func
return self.func(req, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/app/wsgi.py", line 263, in
__call__
return controller(req)
File "/usr/local/lib/python2.7/dist-packages/ryu/app/wsgi.py", line 125, in
__call__
return getattr(self, action)(req, **kwargs)
File "/home/weijie/ryu/ryu/app/ofctl_rest.py", line 202, in get_flow_stats
flows = _ofctl.get_flow_stats(dp, self.waiters, flow)
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/ofctl_v1_3.py", line
482, in get_flow_stats
match = match_to_str(stats.match)
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/ofctl_v1_3.py", line
380, in match_to_str
value = value + '/' + mask
TypeError: unsupported operand type(s) for +: 'int' and 'str'
I think the reason is because the type of mask is integer here. Did I do
anything wrong? Or is it a bug of ofctl_rest.py?
--
Weijie Liu
Department of Computer Science
University of Illinois at Urbana-Champaign
(217)819-6113
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel