From 2e5dce048ca68679f53be3ae994687f73c8d2db6 Mon Sep 17 00:00:00 2001 From: jbordongit Date: Fri, 3 Mar 2023 00:46:50 +0800 Subject: ipsec: T4916: Fixed migrations script * removed unused `re` from imports * replaced `return_value()` to `return_values()` for `remote-address` because this is a multi-value configuration node --- src/migration-scripts/ipsec/10-to-11 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/migration-scripts/ipsec/10-to-11') 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 . -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': -- cgit v1.2.3