summaryrefslogtreecommitdiff
path: root/src/migration-scripts/bgp
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-03-23 08:42:40 -0500
committerJohn Estabrook <jestabro@vyos.io>2022-03-23 08:42:40 -0500
commitd193e5cb9040bfca5011400acef601e8c7111346 (patch)
tree380bf10dd354ca9ba355c0b21feefe88d9cc7157 /src/migration-scripts/bgp
parent34bb64b361b7887def8f507eab1c99fff44165cf (diff)
downloadvyos-1x-d193e5cb9040bfca5011400acef601e8c7111346.tar.gz
vyos-1x-d193e5cb9040bfca5011400acef601e8c7111346.zip
bgp: T4314: add missing check to migration script
Diffstat (limited to 'src/migration-scripts/bgp')
-rwxr-xr-xsrc/migration-scripts/bgp/0-to-12
1 files changed, 1 insertions, 1 deletions
diff --git a/src/migration-scripts/bgp/0-to-1 b/src/migration-scripts/bgp/0-to-1
index b1d5a6514..5e9dffe1f 100755
--- a/src/migration-scripts/bgp/0-to-1
+++ b/src/migration-scripts/bgp/0-to-1
@@ -33,7 +33,7 @@ with open(file_name, 'r') as f:
base = ['protocols', 'bgp']
config = ConfigTree(config_file)
-if not config.exists(base):
+if not config.exists(base) or not config.is_tag(base):
# Nothing to do
exit(0)