summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/ipsec.t.json
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-06-23 16:28:42 +0200
committerFlorian Westphal <fw@strlen.de>2022-06-27 12:21:46 +0200
commited2426bccd3ea954adc8a010bf1736e8ed6a81b9 (patch)
tree8100068574de77f6b82bb4fe2339b48e2924f4d2 /tests/py/inet/ipsec.t.json
parent27107b4932b1bd1a39c21e0d7865f3bf220a3857 (diff)
tests/py: Add a test for failing ipsec after counter
This is a bug in parser/scanner due to scoping: | Error: syntax error, unexpected string, expecting saddr or daddr | add rule ip ipsec-ip4 ipsec-forw counter ipsec out ip daddr 192.168.1.2 | ^^^^^ Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/inet/ipsec.t.json')
-rw-r--r--tests/py/inet/ipsec.t.json21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/py/inet/ipsec.t.json b/tests/py/inet/ipsec.t.json
index d7d3a03c..18a64f35 100644
--- a/tests/py/inet/ipsec.t.json
+++ b/tests/py/inet/ipsec.t.json
@@ -134,3 +134,24 @@
}
}
]
+
+# counter ipsec out ip daddr 192.168.1.2
+[
+ {
+ "counter": null
+ },
+ {
+ "match": {
+ "left": {
+ "ipsec": {
+ "dir": "out",
+ "family": "ip",
+ "key": "daddr",
+ "spnum": 0
+ }
+ },
+ "op": "==",
+ "right": "192.168.1.2"
+ }
+ }
+]