diff options
Diffstat (limited to 'src/migration-scripts/interfaces/9-to-10')
-rwxr-xr-x | src/migration-scripts/interfaces/9-to-10 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/migration-scripts/interfaces/9-to-10 b/src/migration-scripts/interfaces/9-to-10 index 4aa2c42b5..c6311a24d 100755 --- a/src/migration-scripts/interfaces/9-to-10 +++ b/src/migration-scripts/interfaces/9-to-10 @@ -32,6 +32,8 @@ if __name__ == '__main__': config_file = f.read() config = ConfigTree(config_file) + if not config.exists(['interfaces']): + exit(0) for intf_type in config.list_nodes(['interfaces']): for intf in config.list_nodes(['interfaces', intf_type]): |