diff options
| author | Ruben Herold <ruben@puettmann.net> | 2026-10-20 14:21:52 +0200 |
|---|---|---|
| committer | Ruben Herold <ruben@puettmann.net> | 2026-10-27 09:22:16 +0100 |
| commit | b70baa6f8af260529d1db1330da246f309039908 (patch) | |
| tree | fab05877afafb8fcd25884093b423802f6ad6dd1 /scripts/system | |
| parent | 089c767056910d1b89f72a97d96b1455d25e5bcd (diff) | |
| download | vyos-1x-b70baa6f8af260529d1db1330da246f309039908.tar.gz vyos-1x-b70baa6f8af260529d1db1330da246f309039908.zip | |
frrender: T9442: cache the FRR configuration only after it was applied
The configuration was stored as the cached one before FRR had reloaded
it. If the reload failed, or FRR was down, the next commit found the
configuration unchanged, skipped the reload and reported success while
FRR kept running the old configuration.
Keep the rendered configuration aside and make it the cached one only
after the reload succeeded. A render which does not reach the reload is
not cached either.
If the reload fails, FRR may run a part of the new configuration. The
cache is dropped then, so even a return to the previous configuration
reloads FRR. A reload that succeeds on the last try no longer raises an
error.
Diffstat (limited to 'scripts/system')
0 files changed, 0 insertions, 0 deletions
