From 7e731c0ef503334eaab2bfd723163a9749d64da2 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 16 Jan 2022 18:17:24 +0100 Subject: Revert "migrator: interfaces: T4171: bugfix ConfigTreeError" This reverts commit 29efbf51efea559773f61703f11a77a8aee6de36. --- src/migration-scripts/interfaces/5-to-6 | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/migration-scripts/interfaces/5-to-6 b/src/migration-scripts/interfaces/5-to-6 index dc8d9554f..ae79c1d1b 100755 --- a/src/migration-scripts/interfaces/5-to-6 +++ b/src/migration-scripts/interfaces/5-to-6 @@ -107,15 +107,10 @@ 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(base): - base_if_type = base + [if_type] + for if_type in config.list_nodes(['interfaces']): + base_if_type = ['interfaces', if_type] # for every individual interface we need to check if there is an # ipv6 ra configured ... and also for every VIF (VLAN) interface -- cgit v1.2.3