diff options
Diffstat (limited to 'src/migration-scripts/interfaces/22-to-23')
-rwxr-xr-x | src/migration-scripts/interfaces/22-to-23 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/migration-scripts/interfaces/22-to-23 b/src/migration-scripts/interfaces/22-to-23 index 06e07572f..734aa1fd8 100755 --- a/src/migration-scripts/interfaces/22-to-23 +++ b/src/migration-scripts/interfaces/22-to-23 @@ -84,6 +84,8 @@ if __name__ == '__main__': config_file = f.read() config = ConfigTree(config_file) + if not config.exists(['interfaces']): + exit(0) # # Migrate "interface ethernet eth0 ip ospf" to "protocols ospf interface eth0" |