On 3 November 2017 at 13:37, Tomas Mudrunka <mudrunka@xxxxxxxxx> wrote: >> Try this: >> meta priority set ip daddr map { 1.1.1.2 : 2:2222, 1.1.1.3 : 3:3333 } > > > Thank you, that looks promising. However is there way to name this map, so i > can dynamicaly edit it? I've checked nft describe: It seems there is some issue with the parser. Could you please test the attached patch? It is quick and dirty, not even compiled tested. Hope there aren't shift/reduce errors from bison.
parser: allow classid as set key From: Arturo Borrero Gonzalez <arturo@xxxxxxxxxxxxx> Allow TC classid as set key. Signed-off-by: Arturo Borrero Gonzalez <arturo@xxxxxxxxxxxxx> --- src/parser_bison.y | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parser_bison.y b/src/parser_bison.y index 7016f5b..2918875 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -1545,6 +1545,7 @@ type_identifier : STRING { $$ = $1; } | MARK { $$ = xstrdup("mark"); } | DSCP { $$ = xstrdup("dscp"); } | ECN { $$ = xstrdup("ecn"); } + | CLASSID { $$ = xstrdup("classid"); } ; hook_spec : TYPE STRING HOOK STRING dev_spec PRIORITY prio_spec