[PR #1841] [CLOSED] Delete route from system only if added by the client #15895

Open
opened 2026-08-05 03:08:37 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1841
Author: @mlsmaycon
Created: 4/12/2024
Status: Closed

Base: mainHead: fix/delete-route-only-after-adding


📝 Commits (6)

  • bf0b6c5 Delete route from system only if added by the client
  • c4f1777 return error instead of log
  • bb08f36 Merge branch 'main' into fix/delete-route-only-after-adding
  • 56450e1 Update client/internal/routemanager/systemops.go
  • c4ca7ef add debug log
  • 64faeb5 fix tests

📊 Changes

3 files changed (+36 additions, -39 deletions)

View changed files

📝 client/internal/routemanager/client.go (+10 -2)
📝 client/internal/routemanager/systemops.go (+1 -2)
📝 client/internal/routemanager/systemops_test.go (+25 -35)

📄 Description

This adds a flags to check if the addVPNRoute executed without issues before removing a route from the system

Describe your changes

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 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/1841 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 4/12/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/delete-route-only-after-adding` --- ### 📝 Commits (6) - [`bf0b6c5`](https://github.com/netbirdio/netbird/commit/bf0b6c5f8ae6150ef26dab4256a4e88efdbe3da0) Delete route from system only if added by the client - [`c4f1777`](https://github.com/netbirdio/netbird/commit/c4f17771e356d3a8859556db7c5baf7225e32844) return error instead of log - [`bb08f36`](https://github.com/netbirdio/netbird/commit/bb08f3677f8a344caabbd228834635b5a25e3603) Merge branch 'main' into fix/delete-route-only-after-adding - [`56450e1`](https://github.com/netbirdio/netbird/commit/56450e1b4fc9fcddfff369e2aeea4594cc50d9c2) Update client/internal/routemanager/systemops.go - [`c4ca7ef`](https://github.com/netbirdio/netbird/commit/c4ca7ef1b15842646b7e4086c288e7b0170cb64f) add debug log - [`64faeb5`](https://github.com/netbirdio/netbird/commit/64faeb5fae46c4053b64242577778c3381fee754) fix tests ### 📊 Changes **3 files changed** (+36 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/routemanager/client.go` (+10 -2) 📝 `client/internal/routemanager/systemops.go` (+1 -2) 📝 `client/internal/routemanager/systemops_test.go` (+25 -35) </details> ### 📄 Description This adds a flags to check if the addVPNRoute executed without issues before removing a route from the system ## Describe your changes ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <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 03:08:37 -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#15895