[PR #1203] [MERGED] Fix routing groups expand and filtering #13401

Closed
opened 2026-08-05 02:08:20 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1203
Author: @mlsmaycon
Created: 10/8/2023
Status: Merged
Merged: 10/9/2023
Merged by: @braginini

Base: mainHead: fix/routing-groups-expand-and-filtering


📝 Commits (9)

  • 4a4544d Fix routing groups expand and filtering
  • de8962b use peer key for enabled routes
  • 879cda2 use peer key for enabled routes
  • e0cce21 add meta to route test
  • 3f4907c fix tests and avoid duplicates
  • b59bc70 check error
  • a4a1a26 Improve error message
  • baeb707 Simplify takeRoute in getEnabledAndDisabledRoutesByPeer
  • a11b7a5 Rename methods to add more clarity

📊 Changes

4 files changed (+107 additions, -105 deletions)

View changed files

📝 management/server/account.go (+39 -65)
📝 management/server/account_test.go (+1 -1)
📝 management/server/route.go (+1 -1)
📝 management/server/route_test.go (+66 -38)

📄 Description

Describe your changes

This PR fixes an issue where only one route containing routing groups was being synced to peers

It also prevents sending routes for peers that aren't connected via ACL

Moved all checks to Account.getEnabledAndDisabledRoutesByPeer

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/1203 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 10/8/2023 **Status:** ✅ Merged **Merged:** 10/9/2023 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `fix/routing-groups-expand-and-filtering` --- ### 📝 Commits (9) - [`4a4544d`](https://github.com/netbirdio/netbird/commit/4a4544d0ae50257c868d80c85f1794496063ad54) Fix routing groups expand and filtering - [`de8962b`](https://github.com/netbirdio/netbird/commit/de8962bb093c620f8e86d84e8c701240f0bc934c) use peer key for enabled routes - [`879cda2`](https://github.com/netbirdio/netbird/commit/879cda2267acb3a89a68525e8b7a65e83e3d8d4c) use peer key for enabled routes - [`e0cce21`](https://github.com/netbirdio/netbird/commit/e0cce21032f4eee1d16354e9227d400649922cce) add meta to route test - [`3f4907c`](https://github.com/netbirdio/netbird/commit/3f4907c8aa7a4eb4d9ae153fad89ee9bc6f9ee2e) fix tests and avoid duplicates - [`b59bc70`](https://github.com/netbirdio/netbird/commit/b59bc7037e433b4e2dba3672cd49ef368a219d8d) check error - [`a4a1a26`](https://github.com/netbirdio/netbird/commit/a4a1a26d4370357ff1cc595d7ed5cccc78471ab1) Improve error message - [`baeb707`](https://github.com/netbirdio/netbird/commit/baeb70784dda327382ff87d5363419f9b7f86c37) Simplify takeRoute in getEnabledAndDisabledRoutesByPeer - [`a11b7a5`](https://github.com/netbirdio/netbird/commit/a11b7a5a2714f5272f15802fd4bceddabf0b8cd5) Rename methods to add more clarity ### 📊 Changes **4 files changed** (+107 additions, -105 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+39 -65) 📝 `management/server/account_test.go` (+1 -1) 📝 `management/server/route.go` (+1 -1) 📝 `management/server/route_test.go` (+66 -38) </details> ### 📄 Description ## Describe your changes This PR fixes an issue where only one route containing routing groups was being synced to peers It also prevents sending routes for peers that aren't connected via ACL Moved all checks to Account.getEnabledAndDisabledRoutesByPeer ## Issue ticket number and link ### Checklist - [x] 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 02:08:20 -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#13401