summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-05-24 13:37:02 -0500
committerJohn Estabrook <jestabro@vyos.io>2022-05-25 11:42:44 -0500
commit64a92e802a757fc40637aeb7494f3aa197044288 (patch)
treebcf9697635e790a09f86bb65daec758fd06b977e /python/vyos
parent12baed897cb3e4037b234cbb0a5def645b47e415 (diff)
downloadvyos-1x-64a92e802a757fc40637aeb7494f3aa197044288.tar.gz
vyos-1x-64a92e802a757fc40637aeb7494f3aa197044288.zip
configtest: T4382: bgp migration scripts need to follow quagga scripts
The configs bgp_bfd_communities and bgp_big_as_cloud reveal a counterexample to the independence of component migration scripts: quagga migration scripts must precede those of bgp; explicitly reorder from lexical order.
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/migrator.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/vyos/migrator.py b/python/vyos/migrator.py
index a2e0daabd..c6e3435ca 100644
--- a/python/vyos/migrator.py
+++ b/python/vyos/migrator.py
@@ -105,6 +105,11 @@ class Migrator(object):
sys_keys = list(sys_versions.keys())
sys_keys.sort()
+ # XXX 'bgp' needs to follow 'quagga':
+ if 'bgp' in sys_keys and 'quagga' in sys_keys:
+ sys_keys.insert(sys_keys.index('quagga'),
+ sys_keys.pop(sys_keys.index('bgp')))
+
rev_versions = {}
for key in sys_keys: