summaryrefslogtreecommitdiff
path: root/src/migration-scripts/interfaces/11-to-12
diff options
context:
space:
mode:
Diffstat (limited to 'src/migration-scripts/interfaces/11-to-12')
-rwxr-xr-xsrc/migration-scripts/interfaces/11-to-122
1 files changed, 2 insertions, 0 deletions
diff --git a/src/migration-scripts/interfaces/11-to-12 b/src/migration-scripts/interfaces/11-to-12
index 0dad24642..ca4ebe741 100755
--- a/src/migration-scripts/interfaces/11-to-12
+++ b/src/migration-scripts/interfaces/11-to-12
@@ -31,6 +31,8 @@ if __name__ == '__main__':
config_file = f.read()
config = ConfigTree(config_file)
+ if not config.exists(['interfaces']):
+ exit(0)
for type in config.list_nodes(['interfaces']):
for interface in config.list_nodes(['interfaces', type]):