tests/shell/testcases/maps/dumps/vmap_unary.json-nft
raw| 1 | { |
| 2 | "nftables": [ |
| 3 | { |
| 4 | "metainfo": { |
| 5 | "version": "VERSION", |
| 6 | "release_name": "RELEASE_NAME", |
| 7 | "json_schema_version": 1 |
| 8 | } |
| 9 | }, |
| 10 | { |
| 11 | "table": { |
| 12 | "family": "ip", |
| 13 | "name": "filter", |
| 14 | "handle": 0 |
| 15 | } |
| 16 | }, |
| 17 | { |
| 18 | "chain": { |
| 19 | "family": "ip", |
| 20 | "table": "filter", |
| 21 | "name": "INPUT", |
| 22 | "handle": 0, |
| 23 | "type": "filter", |
| 24 | "hook": "input", |
| 25 | "prio": 0, |
| 26 | "policy": "drop" |
| 27 | } |
| 28 | }, |
| 29 | { |
| 30 | "map": { |
| 31 | "family": "ip", |
| 32 | "name": "ipsec_in", |
| 33 | "table": "filter", |
| 34 | "type": { |
| 35 | "typeof": { |
| 36 | "concat": [ |
| 37 | { |
| 38 | "ipsec": { |
| 39 | "key": "reqid", |
| 40 | "dir": "in", |
| 41 | "spnum": 0 |
| 42 | } |
| 43 | }, |
| 44 | { |
| 45 | "meta": { |
| 46 | "key": "iif" |
| 47 | } |
| 48 | } |
| 49 | ] |
| 50 | } |
| 51 | }, |
| 52 | "handle": 0, |
| 53 | "map": "verdict", |
| 54 | "flags": [ |
| 55 | "interval" |
| 56 | ] |
| 57 | } |
| 58 | }, |
| 59 | { |
| 60 | "rule": { |
| 61 | "family": "ip", |
| 62 | "table": "filter", |
| 63 | "chain": "INPUT", |
| 64 | "handle": 0, |
| 65 | "expr": [ |
| 66 | { |
| 67 | "vmap": { |
| 68 | "key": { |
| 69 | "concat": [ |
| 70 | { |
| 71 | "ipsec": { |
| 72 | "key": "reqid", |
| 73 | "dir": "in", |
| 74 | "spnum": 0 |
| 75 | } |
| 76 | }, |
| 77 | { |
| 78 | "meta": { |
| 79 | "key": "iif" |
| 80 | } |
| 81 | } |
| 82 | ] |
| 83 | }, |
| 84 | "data": "@ipsec_in" |
| 85 | } |
| 86 | } |
| 87 | ] |
| 88 | } |
| 89 | } |
| 90 | ] |
| 91 | } |