On Fri, 28 Nov 2014 16:47:02 +0900
Minoru TAKAHASHI <[email protected]> wrote:

> Currently, when VLAN ID match field is specified,
> ofctl_v1_[23] is compatible with only match combination 1) of
> the following three match combinations.
> This patch makes it possible to set the all three combinations.
> 
>   Match combinations for VLAN ID :
>     1) To match only packets with VLAN tag and VID equal value
>     2) To match only packets without a VLAN tag
>     3) To match only packets with a VLAN tag regardless of its value
> 
> In order to set the match combinations 2) or 3), please describe
> "dl_vlan" field as hexadecimal string value like as follows.
> 
>   Before applying this patch:
>     {"dl_vlan": 3 }              # int
> 
>   After applying this patch:
>     {"dl_vlan": 3 }              # int (same as before applying)
>     {"dl_vlan": "0x0000"}        # hexadecimal string without mask
>     {"dl_vlan": "0x1000/0x1000"} # hexadecimal string with mask
> 
> NOTE: When "dl_vlan" field is described as decimal int value,
>       OFPVID_PRESENT(0x1000) bit is automatically applied.
>       OTOH, OFPVID_PRESENT(0x1000) bit is NOT automatically applied
>       to hexadecimal string value.
> 
> For curl command examples, please refer to the following page in 
> Ryu-documentation.
> http://ryu.readthedocs.org/en/latest/app/ofctl_rest.html#example-of-vlan-id-match-field
> 
> Signed-off-by: Minoru TAKAHASHI <[email protected]>
> ---
>  ryu/lib/ofctl_v1_2.py            | 48 ++++++++++++++++++---
>  ryu/lib/ofctl_v1_3.py            | 48 ++++++++++++++++++---
>  ryu/tests/unit/lib/test_ofctl.py | 92 
> ++++++++++++++++++++++++++++++++++++++--
>  3 files changed, 170 insertions(+), 18 deletions(-)

Applied both, thanks!

------------------------------------------------------------------------------
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=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to