summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/dumps/vmap_unary.json-nft
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/maps/dumps/vmap_unary.json-nft')
-rw-r--r--tests/shell/testcases/maps/dumps/vmap_unary.json-nft89
1 files changed, 89 insertions, 0 deletions
diff --git a/tests/shell/testcases/maps/dumps/vmap_unary.json-nft b/tests/shell/testcases/maps/dumps/vmap_unary.json-nft
new file mode 100644
index 00000000..08583f9b
--- /dev/null
+++ b/tests/shell/testcases/maps/dumps/vmap_unary.json-nft
@@ -0,0 +1,89 @@
+{
+ "nftables": [
+ {
+ "metainfo": {
+ "version": "VERSION",
+ "release_name": "RELEASE_NAME",
+ "json_schema_version": 1
+ }
+ },
+ {
+ "table": {
+ "family": "ip",
+ "name": "filter",
+ "handle": 0
+ }
+ },
+ {
+ "chain": {
+ "family": "ip",
+ "table": "filter",
+ "name": "INPUT",
+ "handle": 0,
+ "type": "filter",
+ "hook": "input",
+ "prio": 0,
+ "policy": "drop"
+ }
+ },
+ {
+ "map": {
+ "family": "ip",
+ "name": "ipsec_in",
+ "table": "filter",
+ "type": {
+ "typeof": {
+ "concat": [
+ {
+ "ipsec": {
+ "key": "reqid",
+ "dir": "in",
+ "spnum": 0
+ }
+ },
+ {
+ "meta": {
+ "key": "iif"
+ }
+ }
+ ]
+ }
+ },
+ "handle": 0,
+ "map": "verdict",
+ "flags": "interval"
+ }
+ },
+ {
+ "rule": {
+ "family": "ip",
+ "table": "filter",
+ "chain": "INPUT",
+ "handle": 0,
+ "expr": [
+ {
+ "vmap": {
+ "key": {
+ "concat": [
+ {
+ "ipsec": {
+ "key": "reqid",
+ "dir": "in",
+ "spnum": 0
+ }
+ },
+ {
+ "meta": {
+ "key": "iif"
+ }
+ }
+ ]
+ },
+ "data": "@ipsec_in"
+ }
+ }
+ ]
+ }
+ }
+ ]
+}