That's weird but you are right.

When I was running this command I got:
$ ryu --version
ryu 3.18

But after using
$ sudo python setup.py install
it's working

Best,
Clément

On 25 February 2015 at 03:42, Yusuke Iwase <[email protected]> wrote:

> Hi Clément,
>
> On 2015年02月24日 23:36, Clément Rault wrote:
> > Hi,
> >
> > Surprisingly I still get the error with the version 3.18:
>
> I think your ryu version is still old.
> Please run setup.py (at Ryu top directory) as follow.
>
> $ sudo python setup.py install
>
> Thanks
>
> >
> > ubuntu@sdnhubvm:~[06:02]$ curl -X POST -d '{
> >>     "dpid": 1,
> >>     "cookie": 1,
> >>     "cookie_mask": 1,
> >>     "table_id": 0,
> >>     "idle_timeout": 0,
> >>     "hard_timeout": 0,
> >>     "priority": 11112,
> >>     "flags": 1,
> >>     "match":{
> >>         "nw_dst": "11.0.0.2",
> >>         "eth_type": 2048,
> >>         "dl_vlan": "0x1001"   # Describe sum of VLAN-ID(e.g. 1) |
> OFPVID_PRESENT(0x1000)
> >>     },
> >>     "actions":[
> >>         {
> >>             "type":"GROUP",
> >>             "group_id": 2
> >>         }
> >>             ]
> >>  }' 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: '0x1001'
> >
> > I switched to using
> > "dl_vlan": 1
> > and it's working fine.
> >
> > Best,
> > Clément
> >
> > On 18 February 2015 at 17:24, Clément Rault <[email protected]
> <mailto:[email protected]>> wrote:
> >
> >     Hi,
> >
> >     Thanks for your answer.
> >
> >     I have the version 3.13 installed so that's why it's not working.
> >
> >     Best,
> >     Clément
> >
> >     On 18 February 2015 at 08:39, Yusuke Iwase <[email protected]
> <mailto:[email protected]>> wrote:
> >
> >         Hi Clément
> >
> >         On 2015年02月18日 01:19, Clément Rault wrote:
> >         > 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'
> >
> >         Which version of Ryu are you using?
> >         This examples were added in Ryu 3.16.
> >         Please check your Ryu version(>=3.16) as follow.
> >
> >         $ ryu --version
> >         ryu 3.18
> >
> >         Thanks
> >
> >         >
> >         > 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] <mailto:
> [email protected]>
> >         > https://lists.sourceforge.net/lists/listinfo/ryu-devel
> >         >
> >
> >
> >
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to