summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/sets.t.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/inet/sets.t.json')
-rw-r--r--tests/py/inet/sets.t.json37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/py/inet/sets.t.json b/tests/py/inet/sets.t.json
new file mode 100644
index 00000000..75881f71
--- /dev/null
+++ b/tests/py/inet/sets.t.json
@@ -0,0 +1,37 @@
+# ip saddr @set1 drop
+[
+ {
+ "match": {
+ "left": {
+ "payload": {
+ "field": "saddr",
+ "name": "ip"
+ }
+ },
+ "right": "@set1"
+ }
+ },
+ {
+ "drop": null
+ }
+]
+
+# ip6 daddr != @set2 accept
+[
+ {
+ "match": {
+ "left": {
+ "payload": {
+ "field": "daddr",
+ "name": "ip6"
+ }
+ },
+ "op": "!=",
+ "right": "@set2"
+ }
+ },
+ {
+ "accept": null
+ }
+]
+