diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-01-11 20:59:54 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-01-11 23:50:42 +0100 |
commit | 391ce22b76190309f81e048ebffab778b0fdee1d (patch) | |
tree | 0b4e9d1dc0f33f743e89a8a9b42295e004321799 /src/migration-scripts/interfaces/11-to-12 | |
parent | 968afb9e67a2267d248af5c127c4086bcd80374e (diff) | |
download | vyos-1x-391ce22b76190309f81e048ebffab778b0fdee1d.tar.gz vyos-1x-391ce22b76190309f81e048ebffab778b0fdee1d.zip |
migrator: interfaces: T4171: bugfix ConfigTreeError
Diffstat (limited to 'src/migration-scripts/interfaces/11-to-12')
-rwxr-xr-x | src/migration-scripts/interfaces/11-to-12 | 2 |
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]): |