summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/migration-scripts/interfaces/14-to-154
1 files changed, 4 insertions, 0 deletions
diff --git a/src/migration-scripts/interfaces/14-to-15 b/src/migration-scripts/interfaces/14-to-15
index b170f7e4d..5c25f8628 100755
--- a/src/migration-scripts/interfaces/14-to-15
+++ b/src/migration-scripts/interfaces/14-to-15
@@ -33,6 +33,10 @@ if __name__ == '__main__':
config = ConfigTree(config_file)
base = ['interfaces', 'ethernet']
+ if not config.exists(base):
+ # Nothing to do
+ exit(0)
+
migrate = False
for interface in config.list_nodes(base):
smp_base = base + [interface, 'smp-affinity']