From 148af29b68416a5b8d0e025a16aef252fdf31e67 Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Tue, 2 Jul 2024 08:54:11 -0300 Subject: T6536: nat: add migration script that replaces wildcard charater supported in 1.3 <+> with character supported in latest version <*> --- src/migration-scripts/nat/6-to-7 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/migration-scripts') 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]) -- cgit v1.2.3