summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-05-24 13:20:23 -0500
committerJohn Estabrook <jestabro@vyos.io>2022-05-25 11:42:44 -0500
commit12baed897cb3e4037b234cbb0a5def645b47e415 (patch)
tree474280f6657f08f3202bf3b10f62a11ce9a2bb06 /src/migration-scripts
parentec3a05d3dfda497910d42ad99d28d977312ea7a4 (diff)
downloadvyos-1x-12baed897cb3e4037b234cbb0a5def645b47e415.tar.gz
vyos-1x-12baed897cb3e4037b234cbb0a5def645b47e415.zip
configtest: T4382: fix missing delete of 'ipsec-interfaces' node
Migration of bgp-azure-ipsec-gateway and bgp_dmvpn_hub reveals that migration script ipsec/5-to-6 leaves the empty node 'ipsec-interfaces' after moving the interface; fix the migration script, as it is not yet in 1.3.
Diffstat (limited to 'src/migration-scripts')
-rwxr-xr-xsrc/migration-scripts/ipsec/5-to-62
1 files changed, 1 insertions, 1 deletions
diff --git a/src/migration-scripts/ipsec/5-to-6 b/src/migration-scripts/ipsec/5-to-6
index e9adee01b..3a8b3926d 100755
--- a/src/migration-scripts/ipsec/5-to-6
+++ b/src/migration-scripts/ipsec/5-to-6
@@ -78,7 +78,7 @@ if config.exists(log_mode):
base_interfaces = base + ['ipsec-interfaces', 'interface']
if config.exists(base_interfaces):
config.copy(base_interfaces, base + ['interface'])
- config.delete(base_interfaces)
+ config.delete(base + ['ipsec-interfaces'])
# Remove deprecated "auto-update" option
tmp = base + ['auto-update']