summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2025-04-15 11:34:28 -0400
committerGitHub <noreply@github.com>2025-04-15 11:34:28 -0400
commite1901634135cc3f415c38636986b8b3a95fda038 (patch)
tree7edacf86b06796f6b53e724f55de0091250aed71
parent796e1af6e2e22b6eb27b345bac785ef4e6107b1b (diff)
parentb70f9738343367dc4758debda57d5f29036cc385 (diff)
Merge pull request #18592 from zmw12306/bfd_set_shutdown
bfdd: Set bfd.LocalDiag when transitioning to AdminDown
-rw-r--r--bfdd/bfd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfdd/bfd.c b/bfdd/bfd.c
index 3cee2565f3..e538aa64c2 100644
--- a/bfdd/bfd.c
+++ b/bfdd/bfd.c
@@ -1545,6 +1545,7 @@ void bfd_set_shutdown(struct bfd_session *bs, bool shutdown)
return;
SET_FLAG(bs->flags, BFD_SESS_FLAG_SHUTDOWN);
+ bs->local_diag = BD_ADMIN_DOWN;
/* Handle data plane shutdown case. */
if (bs->bdc) {