diff options
author | Nicolas Fort <nicolasfort1988@gmail.com> | 2024-07-02 08:54:11 -0300 |
---|---|---|
committer | Nicolas Fort <nicolasfort1988@gmail.com> | 2024-07-03 10:05:35 -0300 |
commit | 148af29b68416a5b8d0e025a16aef252fdf31e67 (patch) | |
tree | 2ab0881b6bf4107a553f154193f8d4b3f8d2629e /src | |
parent | e265002fdbac344d58c50b7a6126cb7227db3647 (diff) | |
download | vyos-1x-148af29b68416a5b8d0e025a16aef252fdf31e67.tar.gz vyos-1x-148af29b68416a5b8d0e025a16aef252fdf31e67.zip |
T6536: nat: add migration script that replaces wildcard charater supported in 1.3 <+> with character supported in latest version <*>
Diffstat (limited to 'src')
-rw-r--r-- | 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 81b413e36..e9b90fc98 100644 --- a/src/migration-scripts/nat/6-to-7 +++ b/src/migration-scripts/nat/6-to-7 @@ -47,6 +47,8 @@ def migrate(config: ConfigTree) -> None: 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]) |