summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/dup.t.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/ip6/dup.t.json')
-rw-r--r--tests/py/ip6/dup.t.json46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/py/ip6/dup.t.json b/tests/py/ip6/dup.t.json
new file mode 100644
index 00000000..48d6ea3d
--- /dev/null
+++ b/tests/py/ip6/dup.t.json
@@ -0,0 +1,46 @@
+# dup to abcd::1
+[
+ {
+ "dup": {
+ "addr": "abcd::1"
+ }
+ }
+]
+
+# dup to abcd::1 device "lo"
+[
+ {
+ "dup": {
+ "addr": "abcd::1",
+ "dev": "lo"
+ }
+ }
+]
+
+# dup to ip6 saddr map { abcd::1 : cafe::cafe } device "lo"
+[
+ {
+ "dup": {
+ "addr": {
+ "map": {
+ "left": {
+ "payload": {
+ "field": "saddr",
+ "name": "ip6"
+ }
+ },
+ "right": {
+ "set": [
+ [
+ "abcd::1",
+ "cafe::cafe"
+ ]
+ ]
+ }
+ }
+ },
+ "dev": "lo"
+ }
+ }
+]
+