diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-14 12:19:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-14 12:19:26 +0100 |
commit | 0ba44ec4644c5cb5ea91981a2c3042f4a9372f66 (patch) | |
tree | eb10708b5f812a20b0d0d43db181ffe46f20edf0 /src/migration-scripts/firewall/12-to-13 | |
parent | 2e587c8329a1d32fc1ec601c7753211d0fedbf2c (diff) | |
parent | adf5d78e423922e6b5e34a8383f3039adf590b7b (diff) | |
download | vyos-1x-0ba44ec4644c5cb5ea91981a2c3042f4a9372f66.tar.gz vyos-1x-0ba44ec4644c5cb5ea91981a2c3042f4a9372f66.zip |
Merge pull request #2480 from nicolas-fort/T5729-Fix-Migration
T5729: firewall and policy: fix latest migration script
Diffstat (limited to 'src/migration-scripts/firewall/12-to-13')
-rwxr-xr-x | src/migration-scripts/firewall/12-to-13 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/migration-scripts/firewall/12-to-13 b/src/migration-scripts/firewall/12-to-13 index c2b34b2d8..4eaae779b 100755 --- a/src/migration-scripts/firewall/12-to-13 +++ b/src/migration-scripts/firewall/12-to-13 @@ -70,7 +70,7 @@ for family in ['ipv4', 'ipv6', 'bridge']: state_value = config.return_value(base + [family, hook, priority, 'rule', rule, 'state', state]) config.delete(base + [family, hook, priority, 'rule', rule, 'state', state]) if state_value == 'enable': - config.set(base + [family, hook, priority, 'rule', rule, 'state', state]) + config.set(base + [family, hook, priority, 'rule', rule, 'state'], value=state, replace=False) flag_enable = 'True' if flag_enable == 'False': config.delete(base + [family, hook, priority, 'rule', rule, 'state']) |