diff options
author | Yaroslav Kholod <y.kholod@vyos.io> | 2024-12-18 14:15:42 +0200 |
---|---|---|
committer | Yaroslav Kholod <y.kholod@vyos.io> | 2024-12-18 14:57:08 +0200 |
commit | 6fb49160175da44d43b7f72345b571357963490e (patch) | |
tree | 1085ff15e05494d0bf28b401be9781fd09745870 /scripts/package-build | |
parent | c1f9fc6a6d387648e91a74a72b3488c42a6b897a (diff) | |
download | vyos-build-6fb49160175da44d43b7f72345b571357963490e.tar.gz vyos-build-6fb49160175da44d43b7f72345b571357963490e.zip |
T6958: Clear Babel config on babeld stop
Diffstat (limited to 'scripts/package-build')
-rw-r--r-- | scripts/package-build/frr/patches/0003-Clear-Babel-Config-On-Stop.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/package-build/frr/patches/0003-Clear-Babel-Config-On-Stop.patch b/scripts/package-build/frr/patches/0003-Clear-Babel-Config-On-Stop.patch new file mode 100644 index 00000000..fea45891 --- /dev/null +++ b/scripts/package-build/frr/patches/0003-Clear-Babel-Config-On-Stop.patch @@ -0,0 +1,29 @@ +From c3c70e87b040233263b9594d14582dfedfecc92e Mon Sep 17 00:00:00 2001 +From: Yaroslav Kholod <y.kholod@vyos.io> +Date: Wed, 18 Dec 2024 11:48:29 +0200 +Subject: [PATCH] #17413: Clean babeld config on stop + +--- + babeld/babeld.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/babeld/babeld.c b/babeld/babeld.c +index b562f0b70..6f1a9a3d7 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; ++ smoothing_half_life = BABEL_DEFAULT_SMOOTHING_HALF_LIFE; ++ + /* cancel events */ + event_cancel(&babel_routing_process->t_read); + event_cancel(&babel_routing_process->t_update); +-- +2.43.0 + |