diff options
author | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-11-14 10:19:24 +0000 |
---|---|---|
committer | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-11-14 10:19:24 +0000 |
commit | adf5d78e423922e6b5e34a8383f3039adf590b7b (patch) | |
tree | eb10708b5f812a20b0d0d43db181ffe46f20edf0 /src/migration-scripts/policy | |
parent | 2e587c8329a1d32fc1ec601c7753211d0fedbf2c (diff) | |
download | vyos-1x-adf5d78e423922e6b5e34a8383f3039adf590b7b.tar.gz vyos-1x-adf5d78e423922e6b5e34a8383f3039adf590b7b.zip |
T5729: firewall and policy: fix latest migration script
Diffstat (limited to 'src/migration-scripts/policy')
-rwxr-xr-x | src/migration-scripts/policy/6-to-7 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/migration-scripts/policy/6-to-7 b/src/migration-scripts/policy/6-to-7 index 1f955aa02..727b8487a 100755 --- a/src/migration-scripts/policy/6-to-7 +++ b/src/migration-scripts/policy/6-to-7 @@ -66,7 +66,7 @@ for family in ['route', 'route6']: state_value = config.return_value(base + [family, policy_name, 'rule', rule, 'state', state]) config.delete(base + [family, policy_name, 'rule', rule, 'state', state]) if state_value == 'enable': - config.set(base + [family, policy_name, 'rule', rule, 'state', state]) + config.set(base + [family, policy_name, 'rule', rule, 'state'], value=state, replace=False) flag_enable = 'True' if flag_enable == 'False': config.delete(base + [family, policy_name, 'rule', rule, 'state']) |