diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-01-16 18:17:20 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-01-16 18:17:20 +0100 |
commit | 9f52a4f4ea9990bcf3b8c27a472fb47653bbeb0d (patch) | |
tree | 76a788951aa11be835f0f868dc1e8790a69ecdc2 /src/migration-scripts | |
parent | b8039c9888bdca112f4d23d9ee99726ce6d79707 (diff) | |
download | vyos-1x-9f52a4f4ea9990bcf3b8c27a472fb47653bbeb0d.tar.gz vyos-1x-9f52a4f4ea9990bcf3b8c27a472fb47653bbeb0d.zip |
Revert "migrator: interfaces: T4171: bugfix ConfigTreeError"
This reverts commit 391ce22b76190309f81e048ebffab778b0fdee1d.
Diffstat (limited to 'src/migration-scripts')
-rwxr-xr-x | src/migration-scripts/interfaces/11-to-12 | 2 | ||||
-rwxr-xr-x | src/migration-scripts/interfaces/12-to-13 | 2 | ||||
-rwxr-xr-x | src/migration-scripts/interfaces/22-to-23 | 2 | ||||
-rwxr-xr-x | src/migration-scripts/interfaces/9-to-10 | 2 |
4 files changed, 0 insertions, 8 deletions
diff --git a/src/migration-scripts/interfaces/11-to-12 b/src/migration-scripts/interfaces/11-to-12 index ca4ebe741..0dad24642 100755 --- a/src/migration-scripts/interfaces/11-to-12 +++ b/src/migration-scripts/interfaces/11-to-12 @@ -31,8 +31,6 @@ 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]): diff --git a/src/migration-scripts/interfaces/12-to-13 b/src/migration-scripts/interfaces/12-to-13 index fbd7e6f47..f866ca9a6 100755 --- a/src/migration-scripts/interfaces/12-to-13 +++ b/src/migration-scripts/interfaces/12-to-13 @@ -33,8 +33,6 @@ if __name__ == '__main__': config_file = f.read() config = ConfigTree(config_file) - if not config.exists(['interfaces']): - exit(0) # # T2903 diff --git a/src/migration-scripts/interfaces/22-to-23 b/src/migration-scripts/interfaces/22-to-23 index 734aa1fd8..06e07572f 100755 --- a/src/migration-scripts/interfaces/22-to-23 +++ b/src/migration-scripts/interfaces/22-to-23 @@ -84,8 +84,6 @@ 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" diff --git a/src/migration-scripts/interfaces/9-to-10 b/src/migration-scripts/interfaces/9-to-10 index c6311a24d..4aa2c42b5 100755 --- a/src/migration-scripts/interfaces/9-to-10 +++ b/src/migration-scripts/interfaces/9-to-10 @@ -32,8 +32,6 @@ 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]): |