summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/hash.t.payload
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-08-29 17:16:35 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-08-29 20:30:29 +0200
commita26d13e2b099d750e5333a563f5d802bf568eb59 (patch)
treeeccffa3782d27b62721568d4cedc810eee409cf9 /tests/py/ip/hash.t.payload
parent7a3d6802ddcb40d2339a461762afdb0328a3beb7 (diff)
parser_bison: allow variable references in set elements definition
Andreas reports that he cannot use variables in set definitions: define s-ext-2-int = 10.10.10.10 . 25, 10.10.10.10 . 143 set s-ext-2-int { type ipv4_addr . inet_service elements = { $s-ext-2-int } } This syntax is not correct though, since the curly braces should be placed in the variable definition itself, so we have context to handle this variable as a list of set elements. The correct syntax that works after this patch is: define s-ext-2-int = { 10.10.10.10 . 25, 10.10.10.10 . 143 } table inet forward { set s-ext-2-int { type ipv4_addr . inet_service elements = $s-ext-2-int } } Reported-by: Andreas Hainke <andreas.hainke@foteviken.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/hash.t.payload')
0 files changed, 0 insertions, 0 deletions