<html>
<head>
<base href="https://bugzilla.netfilter.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - mapping IPv4 interval to IPv4 interval works for anonymous maps, but not for named maps"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1764#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - mapping IPv4 interval to IPv4 interval works for anonymous maps, but not for named maps"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1764">bug 1764</a>
from <span class="vcard"><a class="email" href="mailto:karel@unitednetworks.cz" title="Karel Rericha <karel@unitednetworks.cz>"> <span class="fn">Karel Rericha</span></a>
</span></b>
<pre>type ipv4_addr : interval ipv4_addr
Works! Sry I did not find it anywhere in docs or examples.
Anyway this syntax is misleading and inconsistent. Specifying interval for map
key by flag and for map value by type parameter is not good idea. BTW I guess
same bad situation is there with concatenations (say you want singleton in the
middle of concatenation).
IMHO best solution is the last one you proposing:
a) for backwards compatibility keep interval flag logic as it is (and may be
deprecate it in future)
b) new syntax for interval should precede type specifier:
nft add map t m { type interval ipv4_addr: interval ipv4_addr }
nft add set t s { type interval ipv4_addr . inet_service . interval ipv4_addr }
This is much easier to read and comprehend.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>