Hi,
I get the following error when I try the example (To match only packets
with VLAN tag and VLAN ID equal value 5) of the documentation:
ubuntu@sdnhubvm:~[08:08]$ curl -X POST -d '{
> "dpid": 1,
> "table_id": 1,
> "match":{
> "dl_vlan": "0x1005" # Describe sum of VLAN-ID(e.g. 5) |
OFPVID_PRESENT(0x1000)
> },
> "actions":[
> {
> "type":"OUTPUT",
> "port": 1
> }
> ]
> }' http://localhost:8080/stats/flowentry/add
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 384, in
handle_one_response
result = self.application(self.environ, start_response)
File "/home/ubuntu/ryu/ryu/app/wsgi.py", line 197, in __call__
return super(wsgify_hack, self).__call__(environ, start_response)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in
__call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in
call_func
return self.func(req, *args, **kwargs)
File "/home/ubuntu/ryu/ryu/app/wsgi.py", line 259, in __call__
return controller(req)
File "/home/ubuntu/ryu/ryu/app/wsgi.py", line 121, in __call__
return getattr(self, action)(req, **kwargs)
File "/home/ubuntu/ryu/ryu/app/ofctl_rest.py", line 357, in mod_flow_entry
ofctl_v1_3.mod_flow_entry(dp, flow, cmd)
File "/home/ubuntu/ryu/ryu/lib/ofctl_v1_3.py", line 942, in mod_flow_entry
match = to_match(dp, flow.get('match', {}))
File "/home/ubuntu/ryu/ryu/lib/ofctl_v1_3.py", line 321, in to_match
value = convert[key](value)
ValueError: invalid literal for int() with base 10: '0x1005'
Just wanted to inform you, because it could mislead some people.
Best,
Clément
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel