]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
json: fix ip6 dnat test case after range to prefix transformation change
authorFlorian Westphal <fw@strlen.de>
Sat, 7 Nov 2020 13:26:34 +0000 (14:26 +0100)
committerFlorian Westphal <fw@strlen.de>
Sat, 7 Nov 2020 13:33:10 +0000 (14:33 +0100)
Tests currently fail with
ip6/dnat.t: WARNING: line 8: ... because test still expects a range expression.

Fixes: ee4391d0ac1e7 ("nat: transform range to prefix expression when possible")
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/py/ip6/dnat.t.json

index 3419b60f5dd1875e6ca1cae8a549901c60f57af3..cbfdb68b493bd6d9c864e564eac511305d5a9504 100644 (file)
     {
         "dnat": {
             "addr": {
-                "range": [
-                    "2001:838:35f:1::",
-                    "2001:838:35f:1:ffff:ffff:ffff:ffff"
-                ]
+                "prefix": {
+                    "addr": "2001:838:35f:1::",
+                    "len": 64
+                }
             }
         }
     }
     {
         "dnat": {
             "addr": {
-                "range": [
-                    "2001:838:35f:1::",
-                    "2001:838:35f:1:ffff:ffff:ffff:ffff"
-                ]
+                "prefix": {
+                    "addr": "2001:838:35f:1::",
+                    "len": 64
+                }
             }
         }
     }
 ]
+