diff options
| author | Nataliia Solomko <natalirs1985@gmail.com> | 2026-02-13 14:07:22 +0200 |
|---|---|---|
| committer | Nataliia Solomko <natalirs1985@gmail.com> | 2026-02-13 22:09:32 +0200 |
| commit | 6c52428f97ff91c48705fdc698db8cd57cc6c47b (patch) | |
| tree | 1cbac353006038cd785fe6bc0b1009e81a85f77e /src/migration-scripts/vpp | |
| parent | 984f41dcab36a2dee3c77908a3218594466647d6 (diff) | |
| download | vyos-1x-6c52428f97ff91c48705fdc698db8cd57cc6c47b.tar.gz vyos-1x-6c52428f97ff91c48705fdc698db8cd57cc6c47b.zip | |
vpp: T8262: Refactor IPsec settings to use only 'ipsec-acceleration' flag
Diffstat (limited to 'src/migration-scripts/vpp')
| -rw-r--r-- | src/migration-scripts/vpp/7-to-8 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/migration-scripts/vpp/7-to-8 b/src/migration-scripts/vpp/7-to-8 index e6cff9668..1e95bb43e 100644 --- a/src/migration-scripts/vpp/7-to-8 +++ b/src/migration-scripts/vpp/7-to-8 @@ -18,6 +18,8 @@ # # Move 'vpp nat44' and 'vpp settings nat44' to 'vpp nat nat44'. # Drop settings for nat workers (T8254) +# +# Delete 'ipsec' node and all settings and replace it with single 'ipsec-acceleration' flag (T8262) from vyos.configtree import ConfigTree @@ -54,6 +56,13 @@ def _migrate_vpp_nat44(config: ConfigTree) -> None: config.copy(settings_path + ['timeout'], new_base_path + ['timeout']) config.delete(settings_path) +def _migrate_vpp_ipsec(config: ConfigTree) -> None: + base = ['vpp', 'settings'] + + if config.exists(base + ['ipsec']): + config.set(base + ['ipsec-acceleration']) + config.delete(base + ['ipsec']) + def migrate(config: ConfigTree) -> None: if not config.exists(['vpp']): @@ -62,3 +71,4 @@ def migrate(config: ConfigTree) -> None: _migrate_vpp_log(config) _migrate_vpp_nat44(config) + _migrate_vpp_ipsec(config) |
