summaryrefslogtreecommitdiffstats
path: root/tests/py
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-11-07 14:26:34 +0100
committerFlorian Westphal <fw@strlen.de>2020-11-07 14:33:10 +0100
commitdb3207dc06bc0c3cd3ec0df409512448ecba603e (patch)
treeab3ceb992e6a31fd0289e8567cb14dc4bf128376 /tests/py
parent37f494198fe9dd9f98a487043af37d5bd72dde7e (diff)
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 <fw@strlen.de>
Diffstat (limited to 'tests/py')
-rw-r--r--tests/py/ip6/dnat.t.json17
1 files changed, 9 insertions, 8 deletions
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
+ }
}
}
}
]
+