diff options
author | Yaroslav Kholod <y.kholod@vyos.io> | 2024-12-20 08:43:30 +0100 |
---|---|---|
committer | Yaroslav Kholod <y.kholod@vyos.io> | 2024-12-20 14:20:59 +0100 |
commit | 58188b5ff819132152bbd8286e98a591a50b8490 (patch) | |
tree | d204cf2f9c8c2f4b57ab9e992fb4d6d9215d0e0b /babeld | |
parent | Merge pull request #17645 from donaldsharp/support_bundle_rip (diff) | |
download | frr-58188b5ff819132152bbd8286e98a591a50b8490.tar.xz frr-58188b5ff819132152bbd8286e98a591a50b8490.zip |
babel: Clean babel config on babel daemon stop
When deactivating babel no router babel and later re-enabling
it router babel the previous configuration is still in place.
Steps to reproduce:
- Enable babel
- Configure babel
- Disable babel with "no router babel"
- Verify config
Expected correct behavior: No config present
Signed-off-by: Yaroslav Kholod <y.kholod@vyos.io>
Diffstat (limited to 'babeld')
-rw-r--r-- | babeld/babeld.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/babeld/babeld.c b/babeld/babeld.c index b562f0b70..1d2f60e3a 100644 --- a/babeld/babeld.c +++ b/babeld/babeld.c @@ -304,6 +304,12 @@ void babel_clean_routing_process(void) flush_all_routes(); babel_interface_close_all(); + /* Clean babel config */ + diversity_kind = DIVERSITY_NONE; + diversity_factor = BABEL_DEFAULT_DIVERSITY_FACTOR; + resend_delay = BABEL_DEFAULT_RESEND_DELAY; + change_smoothing_half_life(BABEL_DEFAULT_SMOOTHING_HALF_LIFE); + /* cancel events */ event_cancel(&babel_routing_process->t_read); event_cancel(&babel_routing_process->t_update); |