From e9c233d65cfffccca131afb4cfb0bcaae0836c39 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 19 Sep 2022 20:29:14 +0200 Subject: ipsec: T4118: bugfix config migrator 9-to-10 When a CLI node is set with a migrator and is not a valueLess node, we need to specify the "value" using the value= operation in config.set(). This fixes the config load error: vyos.configsession.ConfigSessionError: Invalid config file (syntax error): error at line 353 --- src/migration-scripts/ipsec/9-to-10 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migration-scripts/ipsec/9-to-10 b/src/migration-scripts/ipsec/9-to-10 index 98e0aede4..ebf7c4ea9 100755 --- a/src/migration-scripts/ipsec/9-to-10 +++ b/src/migration-scripts/ipsec/9-to-10 @@ -102,7 +102,7 @@ if config.exists(base + ['site-to-site', 'peer']): remote_address = peer if peer.startswith('@'): remote_address = 'any' - config.set(base + ['site-to-site', 'peer', peer, 'remote-address', remote_address]) + config.set(base + ['site-to-site', 'peer', peer, 'remote-address'], value=remote_address) # Peer name it is swanctl connection name and shouldn't contain dots or colons # rename peer: # peer 192.0.2.1 => peer peer_192-0-2-1 -- cgit v1.2.3