summaryrefslogtreecommitdiff
path: root/src/migration-scripts/ipsec
diff options
context:
space:
mode:
authorjbordongit <j.bordon@vyos.io>2023-03-03 00:46:50 +0800
committerjbordongit <j.bordon@vyos.io>2023-03-03 00:46:50 +0800
commit2e5dce048ca68679f53be3ae994687f73c8d2db6 (patch)
tree9f48d786fe04183883fb3b9b1ab1593ab6cac5f9 /src/migration-scripts/ipsec
parent1ab8a32a7cd390a7d470b25e82b411632a3b42a8 (diff)
downloadvyos-1x-2e5dce048ca68679f53be3ae994687f73c8d2db6.tar.gz
vyos-1x-2e5dce048ca68679f53be3ae994687f73c8d2db6.zip
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
Diffstat (limited to 'src/migration-scripts/ipsec')
-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':