diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-03 21:18:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-03 21:18:42 +0200 |
commit | e4e32d9a2d9f9085524e9408561717e0f0b821a5 (patch) | |
tree | 479b106af697d29f78f3bc8ba7a979f1433e027a /src/migration-scripts/nat/6-to-7 | |
parent | c85e7223dbcc7973eb71c15a26a5518b883c21a9 (diff) | |
parent | d38c917949018feae464bcee6b097c0d02fdc7ed (diff) | |
download | vyos-1x-e4e32d9a2d9f9085524e9408561717e0f0b821a5.tar.gz vyos-1x-e4e32d9a2d9f9085524e9408561717e0f0b821a5.zip |
Merge pull request #3761 from vyos/mergify/bp/circinus/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-x | src/migration-scripts/nat/6-to-7 | 2 |
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]) |