summaryrefslogtreecommitdiff
path: root/src/migration-scripts/nat/6-to-7
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-07-03 21:19:49 +0200
committerGitHub <noreply@github.com>2024-07-03 21:19:49 +0200
commitb71096a815e853430907d6eb5a24dc706bf73c25 (patch)
treefdc72c0e3a834f25a218da8c89c9befefbbb8b18 /src/migration-scripts/nat/6-to-7
parentc5716358c150eb215804dfb293dcf831a8a07a9f (diff)
parent20d4ffd527ccea5fb78f2f9e56c887bbc041b1e0 (diff)
downloadvyos-1x-b71096a815e853430907d6eb5a24dc706bf73c25.tar.gz
vyos-1x-b71096a815e853430907d6eb5a24dc706bf73c25.zip
Merge pull request #3762 from vyos/mergify/bp/sagitta/pr-3749
T6536: nat: add migration script that replaces wildcard charater (backport #3749)
Diffstat (limited to 'src/migration-scripts/nat/6-to-7')
-rwxr-xr-xsrc/migration-scripts/nat/6-to-72
1 files changed, 2 insertions, 0 deletions
diff --git a/src/migration-scripts/nat/6-to-7 b/src/migration-scripts/nat/6-to-7
index a2e735394..25640dec2 100755
--- a/src/migration-scripts/nat/6-to-7
+++ b/src/migration-scripts/nat/6-to-7
@@ -59,6 +59,8 @@ for direction in ['source', 'destination']:
tmp = config.return_value(base + [iface, 'interface-name'])
if tmp != 'any':
config.delete(base + [iface, 'interface-name'])
+ if '+' in tmp:
+ tmp = tmp.replace('+', '*')
config.set(base + [iface, 'name'], value=tmp)
else:
config.delete(base + [iface])