[PR #611] [MERGED] Handle peer deletion and state update #13876

Open
opened 2026-08-05 02:09:08 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/611
Author: @mlsmaycon
Created: 12/6/2022
Status: Merged
Merged: 12/6/2022
Merged by: @mlsmaycon

Base: mainHead: handle-peer-deletion


📝 Commits (1)

  • c90e3cd Handle peer deletion and state update

📊 Changes

2 files changed (+9 additions, -4 deletions)

View changed files

📝 client/internal/connect.go (+3 -0)
📝 client/server/server.go (+6 -4)

📄 Description

Describe your changes

If peer is deleted in the console,
we set its state as needs login

On Down command, we clean any previous state errors. This prevents the need for a daemon restart

Removed state error wrapping when engine exits. The log is enough for this case.

Relates to #462

Checklist

  • Is it a bug fix

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/611 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 12/6/2022 **Status:** ✅ Merged **Merged:** 12/6/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `handle-peer-deletion` --- ### 📝 Commits (1) - [`c90e3cd`](https://github.com/netbirdio/netbird/commit/c90e3cd117f8d06c30f5794d7330f39eecd1e6ec) Handle peer deletion and state update ### 📊 Changes **2 files changed** (+9 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/connect.go` (+3 -0) 📝 `client/server/server.go` (+6 -4) </details> ### 📄 Description ## Describe your changes If peer is deleted in the console, we set its state as needs login On Down command, we clean any previous state errors. This prevents the need for a daemon restart Removed state error wrapping when engine exits. The log is enough for this case. ## Issue ticket number and link Relates to #462 ### Checklist - [x] Is it a bug fix --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 02:09:08 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#13876