summaryrefslogtreecommitdiff
path: root/src/migration-scripts/ospf/0-to-1
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-15 17:18:52 +0100
committerGitHub <noreply@github.com>2024-01-15 17:18:52 +0100
commit9171b2912a6adbe88de4eeacbcc83cea5c941e48 (patch)
tree96d6e37947c79915490b1911317739ba7eac35cb /src/migration-scripts/ospf/0-to-1
parent53a14796133c71ef32662ec471671b25e6d3aafa (diff)
parent495c3c3cc646c378746dc458f30da72c85f16dba (diff)
downloadvyos-1x-9171b2912a6adbe88de4eeacbcc83cea5c941e48.tar.gz
vyos-1x-9171b2912a6adbe88de4eeacbcc83cea5c941e48.zip
Merge pull request #2829 from c-po/ospf
ospf: T5936: when migrating passive interfaces set_tag() must be set
Diffstat (limited to 'src/migration-scripts/ospf/0-to-1')
-rwxr-xr-xsrc/migration-scripts/ospf/0-to-14
1 files changed, 3 insertions, 1 deletions
diff --git a/src/migration-scripts/ospf/0-to-1 b/src/migration-scripts/ospf/0-to-1
index 8f02acada..a6cb9feb8 100755
--- a/src/migration-scripts/ospf/0-to-1
+++ b/src/migration-scripts/ospf/0-to-1
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2021 VyOS maintainers and contributors
+# Copyright (C) 2021-2024 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -28,6 +28,7 @@ def ospf_passive_migration(config, ospf_base):
default = True
continue
config.set(ospf_base + ['interface', interface, 'passive'])
+ config.set_tag(ospf_base + ['interface'])
config.delete(ospf_base + ['passive-interface'])
config.set(ospf_base + ['passive-interface'], value='default')
@@ -35,6 +36,7 @@ def ospf_passive_migration(config, ospf_base):
if config.exists(ospf_base + ['passive-interface-exclude']):
for interface in config.return_values(ospf_base + ['passive-interface-exclude']):
config.set(ospf_base + ['interface', interface, 'passive', 'disable'])
+ config.set_tag(ospf_base + ['interface'])
config.delete(ospf_base + ['passive-interface-exclude'])
if len(argv) < 2: