summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-04 21:25:54 +0200
committerGitHub <noreply@github.com>2024-04-04 21:25:54 +0200
commit92a1c2c4a1b57d98cfe9b4a39f1740cfd68e23e6 (patch)
treed29cfa9d0c858b3707a7513cfbc2327222e7a2aa /src/migration-scripts
parent44bd4c360dc032e4bde55b11423ddae0f042600e (diff)
parentef8d9a73335bc685084e3ff97238836e452dfa8c (diff)
downloadvyos-1x-92a1c2c4a1b57d98cfe9b4a39f1740cfd68e23e6.tar.gz
vyos-1x-92a1c2c4a1b57d98cfe9b4a39f1740cfd68e23e6.zip
Merge pull request #3249 from c-po/ospf-T6089
ospf: T6089: fix invalid "ospf passive-interface default"
Diffstat (limited to 'src/migration-scripts')
-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']):