Page MenuHomeVyOS Platform

Update save-config/load-config
Open, NormalPublic

Description

The two tasks T4292 (Rewrite vyatta-save-config.pl to Python) and T4295 (Use config_tree instead of legacy loadFile in vyos-load-config.py) go together in the sense of removing legacy code; they have a common dependency T4291 (Consolidate component version read/write functions).

They are gathered here to present one PR; all complete, but for a trivial bug and testing.

Update: as discussed in T4295, this PR will be replaced with a PR covering just the component version IO clean up and the rewrite of save-config.

Details

Difficulty level
Unknown (require assessment)
Version
vyos-1.4, vyos-1.3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Internal change (not visible to end users)

Event Timeline

jestabro changed the status of subtask T4292: Rewrite vyatta-save-config.pl to Python from Backport candidate to In progress.Aug 22 2023, 11:36 PM

On 1.4.0-epa1, there is no longer an indication that configuration file actually has been saved.

olofl@vyos01# commit
[edit]
olofl@vyos01# save
[edit]