summaryrefslogtreecommitdiffstats
path: root/tests/py/netdev/dup.t.json
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2021-10-24 09:37:35 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-10-28 02:01:20 +0200
commit1e30a3a49a5eaf2a1e0e4b2d8f4949db9db565e7 (patch)
tree6018b85290f3d00d026df8970ad9976a001f6bdf /tests/py/netdev/dup.t.json
parentc03d5e2bda285db8358407de3581b4ea933bd3dc (diff)
tests: py: Move netdev-specific tests to appropriate subdirectory
The fwd and dup statements are specific to netdev hooks, so move their tests to the appropriate subdirectory. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/netdev/dup.t.json')
-rw-r--r--tests/py/netdev/dup.t.json30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/py/netdev/dup.t.json b/tests/py/netdev/dup.t.json
new file mode 100644
index 00000000..dc56f649
--- /dev/null
+++ b/tests/py/netdev/dup.t.json
@@ -0,0 +1,30 @@
+# dup to "lo"
+[
+ {
+ "dup": {
+ "addr": "lo"
+ }
+ }
+]
+
+# dup to meta mark map { 0x00000001 : "lo", 0x00000002 : "lo"}
+[
+ {
+ "dup": {
+ "addr": {
+ "map": {
+ "key": {
+ "meta": { "key": "mark" }
+ },
+ "data": {
+ "set": [
+ [ 1, "lo" ],
+ [ 2, "lo" ]
+ ]
+ }
+ }
+ }
+ }
+ }
+]
+