summaryrefslogtreecommitdiffstats
path: root/tests/py/any/rt.t.json
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-09-05 11:16:42 +0200
committerFlorian Westphal <fw@strlen.de>2018-09-21 12:03:47 +0200
commit04ca9a6ba3ca369053e9b5951f2f85bf8fe98e72 (patch)
treee8d68a8efef66f446d90de1183785ad4b0d0522a /tests/py/any/rt.t.json
parentb0d3f3d95c51f506787719021f3dcba5da687dcb (diff)
src: rt: add support to check if route will perform ipsec transformation
Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/any/rt.t.json')
-rw-r--r--tests/py/any/rt.t.json30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/py/any/rt.t.json b/tests/py/any/rt.t.json
index 955d12a3..2ca6fe01 100644
--- a/tests/py/any/rt.t.json
+++ b/tests/py/any/rt.t.json
@@ -13,3 +13,33 @@
}
]
+# rt ipsec exists
+[
+ {
+ "match": {
+ "left": {
+ "rt": {
+ "key": "ipsec"
+ }
+ },
+ "op": "==",
+ "right": true
+ }
+ }
+]
+
+# rt ipsec missing
+[
+ {
+ "match": {
+ "left": {
+ "rt": {
+ "key": "ipsec"
+ }
+ },
+ "op": "==",
+ "right": false
+ }
+ }
+]
+