diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-09-19 20:29:14 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-09-19 20:29:23 +0200 |
commit | e9c233d65cfffccca131afb4cfb0bcaae0836c39 (patch) | |
tree | 3b40152ed14d57eab135e55a2c4cd616197411c7 /src/migration-scripts | |
parent | fdfe3dabcbff4b495c7e3e7a61b9edbb94aaad98 (diff) | |
download | vyos-1x-e9c233d65cfffccca131afb4cfb0bcaae0836c39.tar.gz vyos-1x-e9c233d65cfffccca131afb4cfb0bcaae0836c39.zip |
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
Diffstat (limited to 'src/migration-scripts')
-rwxr-xr-x | src/migration-scripts/ipsec/9-to-10 | 2 |
1 files changed, 1 insertions, 1 deletions
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 |