Re: nft bug: Deleting map elements with intervals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Feb 26, 2017 at 05:38:55PM +0100, Felix Kluge wrote:
> Hello,
> 
> we're currently trying to use a vertict map to jump to other chains. The
> key of the map is a subnet.
> 
> table ip filter {
>   map cgn_map {
>     type ipv4_addr : verdict
>     flags interval
>     elements = {
>       100.64.2.0/24 : goto chain-100-64-2-0}
>   }
> }
> 
> 
> Adding new elements to the map works well:
> 
> nft add element filter cgn_map { 100.64.3.0/24 : goto ratelimit-100-64-3-0}
> 
> 
> However, deleting elements from the map does not work:
> 
> nft delete element filter cgn_map 100.64.2.0/24
> <cmdline>:1:36-45: Error: syntax error, unexpected string, expecting '{' or '$'

Parens are missing, this should be:

        nft delete element filter cgn_map { 100.64.2.0/24 }

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux