Re: [Ryu-devel] Apply-Actions instruction with the rest api

2015-01-30 Thread Wei-li Tang
Hello, 2015-01-30 22:32 GMT+08:00 Clément Rault : > I realized that that my example isn't very clear. > > If I understood well the vlan tag is 16 bits long, the first bit is > used to represent if a tag a present, the three next ones are for the > pcp and 12 last ones are for the tag itself, righ

Re: [Ryu-devel] Apply-Actions instruction with the rest api

2015-01-30 Thread Clément Rault
Hi, Ok. Yes I could also use the pcp bits that's true. But 12 bits should be enough for what I wanna do right now. But I really need a way only to touch some bits of the vlan tag. Maybe I could copy them to the metatag field and them change some bits there and then copy it back to vlan tag field

Re: [Ryu-devel] Apply-Actions instruction with the rest api

2015-01-30 Thread Clément Rault
I realized that that my example isn't very clear. If I understood well the vlan tag is 16 bits long, the first bit is used to represent if a tag a present, the three next ones are for the pcp and 12 last ones are for the tag itself, right? My point is that I wanna touch 2 bits only, let's say the

Re: [Ryu-devel] Apply-Actions instruction with the rest api

2015-01-30 Thread Clément Rault
Hi, Thanks for your answer. So you're saying that it's possible to match on a part of the bits of the VLAN tag (with dl_vlan = 0xC00 | 0x1000 = 0x1C00 for example, right?) but it's not possible to set only some bits of the VLAN tag? Because I wanna use the VLAN tag to store some information but

Re: [Ryu-devel] Apply-Actions instruction with the rest api

2015-01-29 Thread Wei-Li Tang
Hello, 2015-01-30 1:49 GMT+08:00 Clément Rault : > Hi, > > On 29 January 2015 at 03:51, Yusuke Iwase wrote: > > Hi Clément, > > > > In ofctl_rest.py, fields vlan_vid and dl_vlan are the same. > > > > Match field for VLAN ID is described as "dl_vlan" in OpenFlow Spec 1.0. > > On the other hand, I

Re: [Ryu-devel] Apply-Actions instruction with the rest api

2015-01-29 Thread Clément Rault
Hi, On 29 January 2015 at 03:51, Yusuke Iwase wrote: > Hi Clément, > > In ofctl_rest.py, fields vlan_vid and dl_vlan are the same. > > Match field for VLAN ID is described as "dl_vlan" in OpenFlow Spec 1.0. > On the other hand, In Spec 1.2+, this field is described as "vlan_vid". > ofctl_rest.py

Re: [Ryu-devel] Apply-Actions instruction with the rest api

2015-01-28 Thread Yusuke Iwase
Hi Clément, On 2015年01月29日 02:08, Clément Rault wrote: > Hi, > > There are a few things that I'm not sure to understand. > > First of all why are there two different fields vlan_vid and dl_vlan > and what's the difference between both? In ofctl_rest.py, fields vlan_vid and dl_vlan are the same.

Re: [Ryu-devel] Apply-Actions instruction with the rest api

2015-01-28 Thread Clément Rault
Hi, There are a few things that I'm not sure to understand. First of all why are there two different fields vlan_vid and dl_vlan and what's the difference between both? I wanna have a vlan tag in all the packets but I'm not sure how to make sure that it's present. I was thinking about putting th

Re: [Ryu-devel] Apply-Actions instruction with the rest api

2014-12-10 Thread Yusuke Iwase
Hi Clément, On 2014年12月10日 22:30, Clément Rault wrote: > Hi, > > It there a way to force the actions present in the actions set to be > immediately applied? If you use Apply-Actions instruction, please describe the "action" directly in actions array. e.g.) curl -X POST -d '{ "dpid": 1,

[Ryu-devel] Apply-Actions instruction with the rest api

2014-12-10 Thread Clément Rault
Hi, It there a way to force the actions present in the actions set to be immediately applied? It's quite important for me to be able to do that so that I can use the metadata to communicate between tables but I couldn't find it in the documentation (http://ryu.readthedocs.org/en/latest/app/ofctl_