From db3207dc06bc0c3cd3ec0df409512448ecba603e Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sat, 7 Nov 2020 14:26:34 +0100 Subject: 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 --- tests/py/ip6/dnat.t.json | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'tests/py') 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 + } } } } ] + -- cgit v1.2.3