2014-03-05 23:30 GMT+08:00 FUJITA Tomonori <[email protected]>:

> On Sat,  1 Mar 2014 17:17:16 +0800
> Wei-Li Tang <[email protected]> wrote:
>
> > Openflow 1.1 and later versions allow the use of IP address with
> > arbitrary bitmask in match fields. This adds arbitrary bitmask
> > support to related functions.
> >
> > For match_ip*_to_str functions, it outputs full mask address only
> > if the mask cannot be represented in CIDR format.
> >
> > Please notice that to_match_ipv6() is no longer compatible with
> > ACL hybrid CIDR format (Cisco-like ACL bitmasks) after applying
> > this patch.
>
> Thanks a lot!
>
> Sounds supporting arbitrary bitmask here fully makes sense. But I'm
> bit concerned with the API incompatibility. Is there any way to keep
> it? If not, can you describe the new REST API somewhere?
>
>
Hmm... I'm afraid that it's not possible to keep both two format in the
same functions, because different interpretations may reach different
results.

Given a match field below:

 'ipv6_src': 'fe80::/3f:ffff:ffff:ffff:ffff:ffff:ffff:ffff'

If this was an ACL hybrid CIDR formatted address, then it's equivalent
to fe80::/10 or fe80::/ffc0:: network.
If this was just an address with arbitrary bitmask, then it's equivalent to
::/3f:ffff:ffff:ffff:ffff:ffff:ffff:ffff.

Currently only to_match_ipv6() supports ACL hybrid CIDR format by using
netaddr.IPNetwork to interpret, to_match_ip() does not support it. So I
once thought it's not necessary to keep it because such format exists only
in router ACL configuration.

I'll try to keep both but implement arbitrary bitmask in new functions by
introducing new fields in REST API. (maybe 'ipv6_src_w', 'ipv6_dst_w' for
example?)

Thanks,

-- 
Sincerely,

Wei-Li Tang
System Engineer, Xinguard Inc.
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to