From: Florian Westphal Date: Sat, 7 Nov 2020 13:26:34 +0000 (+0100) Subject: json: fix ip6 dnat test case after range to prefix transformation change X-Git-Tag: v0.9.8~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db3207dc06bc0c3cd3ec0df409512448ecba603e;p=thirdparty%2Fnftables.git json: fix ip6 dnat test case after range to prefix transformation change 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 --- diff --git a/tests/py/ip6/dnat.t.json b/tests/py/ip6/dnat.t.json index 3419b60f..cbfdb68b 100644 --- a/tests/py/ip6/dnat.t.json +++ b/tests/py/ip6/dnat.t.json @@ -81,10 +81,10 @@ { "dnat": { "addr": { - "range": [ - "2001:838:35f:1::", - "2001:838:35f:1:ffff:ffff:ffff:ffff" - ] + "prefix": { + "addr": "2001:838:35f:1::", + "len": 64 + } } } } @@ -95,11 +95,12 @@ { "dnat": { "addr": { - "range": [ - "2001:838:35f:1::", - "2001:838:35f:1:ffff:ffff:ffff:ffff" - ] + "prefix": { + "addr": "2001:838:35f:1::", + "len": 64 + } } } } ] +