diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-04-05 01:31:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-05 01:31:59 +0200 |
commit | b1d2905aeb813e1200adfb911c4a70f8688ad37e (patch) | |
tree | fd42d15c42c3b689eafb7159166e3dd48d9c64cf /src | |
parent | e4d6e98c6dfcf4c92e03583903288a5da834bab1 (diff) | |
parent | 8948a5d5b93614a16199df6f5b3d5b1b00164ac8 (diff) | |
download | vyos-1x-b1d2905aeb813e1200adfb911c4a70f8688ad37e.tar.gz vyos-1x-b1d2905aeb813e1200adfb911c4a70f8688ad37e.zip |
Merge pull request #3251 from vyos/mergify/bp/sagitta/pr-3249
ospf: T6089: fix invalid "ospf passive-interface default" (backport #3249)
Diffstat (limited to 'src')
-rwxr-xr-x | src/migration-scripts/ospf/0-to-1 | 3 |
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']): |