summaryrefslogtreecommitdiff
path: root/src/migration-scripts/ospf
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-04 20:59:01 +0200
committerChristian Breunig <christian@breunig.cc>2024-04-04 20:59:01 +0200
commitef8d9a73335bc685084e3ff97238836e452dfa8c (patch)
tree7af345795bb1fcec3da53d0e3722a56d85cdf60d /src/migration-scripts/ospf
parent3099c96ab7db359da335636bbfcc33c4d6f6e249 (diff)
downloadvyos-1x-ef8d9a73335bc685084e3ff97238836e452dfa8c.tar.gz
vyos-1x-ef8d9a73335bc685084e3ff97238836e452dfa8c.zip
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.
Diffstat (limited to 'src/migration-scripts/ospf')
-rwxr-xr-xsrc/migration-scripts/ospf/0-to-13
1 files changed, 2 insertions, 1 deletions
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']):