diff options
author | Florian Westphal <fw@strlen.de> | 2021-06-16 18:45:56 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-06-21 14:44:58 +0200 |
commit | f8bf621362cc7fa45731c87ef485f7fb298e1e13 (patch) | |
tree | 39fc3feaf84797be04381133ff9fb066bc39a307 /tests/py/any/queue.t.json | |
parent | e4c9023c3c3964edc8ca33ebfef7da46ab8c2c7f (diff) |
src: queue: allow use of MAP statement for queue number retrieval
This allows to chose a queue number at run time using map statements,
e.g.:
queue flags bypass to ip saddr map { 192.168.7/24 : 0, 192.168.0/24 : 1 }
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/any/queue.t.json')
-rw-r--r-- | tests/py/any/queue.t.json | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/py/any/queue.t.json b/tests/py/any/queue.t.json index 18ed3c81..162bdff8 100644 --- a/tests/py/any/queue.t.json +++ b/tests/py/any/queue.t.json @@ -140,3 +140,37 @@ } ] +# queue flags bypass to oifname map { "eth0" : 0, "ppp0" : 2, "eth1" : 2 } +[ + { + "queue": { + "flags": "bypass", + "num": { + "map": { + "data": { + "set": [ + [ + "eth0", + 0 + ], + [ + "ppp0", + 2 + ], + [ + "eth1", + 2 + ] + ] + }, + "key": { + "meta": { + "key": "oifname" + } + } + } + } + } + } +] + |