summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interface-definitions/vpn_ipsec.xml.in2
-rwxr-xr-xsrc/migration-scripts/interfaces/5-to-69
2 files changed, 8 insertions, 3 deletions
diff --git a/interface-definitions/vpn_ipsec.xml.in b/interface-definitions/vpn_ipsec.xml.in
index 0c2205410..afa3d52a0 100644
--- a/interface-definitions/vpn_ipsec.xml.in
+++ b/interface-definitions/vpn_ipsec.xml.in
@@ -286,7 +286,7 @@
</node>
<leafNode name="ikev2-reauth">
<properties>
- <help>ikev2-reauth_help</help>
+ <help>Re-authentication of the remote peer during an IKE re-key. IKEv2 option only</help>
<completionHelp>
<list>yes no</list>
</completionHelp>
diff --git a/src/migration-scripts/interfaces/5-to-6 b/src/migration-scripts/interfaces/5-to-6
index ae79c1d1b..dc8d9554f 100755
--- a/src/migration-scripts/interfaces/5-to-6
+++ b/src/migration-scripts/interfaces/5-to-6
@@ -107,10 +107,15 @@ if __name__ == '__main__':
config_file = f.read()
config = ConfigTree(config_file)
+ base = ['interfaces']
+
+ if not config.exists(base):
+ # Nothing to do
+ exit(0)
# list all individual interface types like dummy, ethernet and so on
- for if_type in config.list_nodes(['interfaces']):
- base_if_type = ['interfaces', if_type]
+ for if_type in config.list_nodes(base):
+ base_if_type = base + [if_type]
# for every individual interface we need to check if there is an
# ipv6 ra configured ... and also for every VIF (VLAN) interface