summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-02 19:56:29 +0100
committerGitHub <noreply@github.com>2023-03-02 19:56:29 +0100
commite5eb4f332f03df51d64d51e7f38ee561f298188c (patch)
treec927c34d58c3c0427447eb18fa8d9b2fd339c9fa /src
parentd0adefa390ed20c9a7afeddd875e583f81dd944f (diff)
parent2e5dce048ca68679f53be3ae994687f73c8d2db6 (diff)
downloadvyos-1x-e5eb4f332f03df51d64d51e7f38ee561f298188c.tar.gz
vyos-1x-e5eb4f332f03df51d64d51e7f38ee561f298188c.zip
Merge pull request #1865 from jbordongit/T4916-sagitta
ipsec: T4916: Fixed migrations script
Diffstat (limited to 'src')
-rwxr-xr-xsrc/migration-scripts/ipsec/10-to-114
1 files changed, 1 insertions, 3 deletions
diff --git a/src/migration-scripts/ipsec/10-to-11 b/src/migration-scripts/ipsec/10-to-11
index ec38d0034..0707a5e3c 100755
--- a/src/migration-scripts/ipsec/10-to-11
+++ b/src/migration-scripts/ipsec/10-to-11
@@ -14,8 +14,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import re
-
from sys import argv
from sys import exit
@@ -64,7 +62,7 @@ if config.exists(base + ['site-to-site', 'peer']):
tmp = config.return_value(peer_base + ['local-address'])
config.set(base + ['authentication', 'psk', peer, 'id'], value=tmp, replace=False)
if config.exists(peer_base + ['remote-address']):
- tmp = config.return_value(peer_base + ['remote-address'])
+ tmp = config.return_values(peer_base + ['remote-address'])
if tmp:
for remote_addr in tmp:
if remote_addr == 'any':