summaryrefslogtreecommitdiff
path: root/src/migration-scripts/isis/0-to-1
diff options
context:
space:
mode:
authorJonathan Voss <jvoss@onvox.net>2023-07-01 09:56:22 -0500
committerJonathan Voss <jvoss@onvox.net>2023-07-03 09:43:46 -0500
commit33acdf68524eda8420c2bf4ea21255a0865f0374 (patch)
tree02dc47b6e169c62e10912e2f5b1cf352c9ef41bc /src/migration-scripts/isis/0-to-1
parent4599a9e35b8944a56e82d990957da27444b7814c (diff)
downloadvyos-1x-33acdf68524eda8420c2bf4ea21255a0865f0374.tar.gz
vyos-1x-33acdf68524eda8420c2bf4ea21255a0865f0374.zip
isis: T5335: fix invalid isis config base in migration script
Diffstat (limited to 'src/migration-scripts/isis/0-to-1')
-rwxr-xr-xsrc/migration-scripts/isis/0-to-15
1 files changed, 1 insertions, 4 deletions
diff --git a/src/migration-scripts/isis/0-to-1 b/src/migration-scripts/isis/0-to-1
index 93cbbbed5..b75a7f72c 100755
--- a/src/migration-scripts/isis/0-to-1
+++ b/src/migration-scripts/isis/0-to-1
@@ -37,12 +37,9 @@ if not config.exists(base):
# Nothing to do
exit(0)
-# Only one IS-IS process is supported, thus this operation is save
-isis_base = base + config.list_nodes(base)
-
# We need a temporary copy of the config
tmp_base = ['protocols', 'isis2']
-config.copy(isis_base, tmp_base)
+config.copy(base, tmp_base)
# Now it's save to delete the old configuration
config.delete(base)