From ef8d9a73335bc685084e3ff97238836e452dfa8c Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 4 Apr 2024 20:59:01 +0200 Subject: ospf: T6089: fix invalid "ospf passive-interface default" The option "passive-interface default" was set even if it was not present in the previous version we are migrating from. Fix migration script to handle this with a conditional path. --- src/migration-scripts/ospf/0-to-1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/migration-scripts') diff --git a/src/migration-scripts/ospf/0-to-1 b/src/migration-scripts/ospf/0-to-1 index a6cb9feb8..4085423a2 100755 --- a/src/migration-scripts/ospf/0-to-1 +++ b/src/migration-scripts/ospf/0-to-1 @@ -31,7 +31,8 @@ def ospf_passive_migration(config, ospf_base): config.set_tag(ospf_base + ['interface']) config.delete(ospf_base + ['passive-interface']) - config.set(ospf_base + ['passive-interface'], value='default') + if default: + config.set(ospf_base + ['passive-interface'], value='default') if config.exists(ospf_base + ['passive-interface-exclude']): for interface in config.return_values(ospf_base + ['passive-interface-exclude']): -- cgit v1.2.3