[PR #2404] [CLOSED] Use policy expanded peers map from src/dest groups #19468

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2404
Author: @mlsmaycon
Created: 8/7/2024
Status: Closed

Base: mainHead: use-pre-expanded-peers-map


📝 Commits (6)

📊 Changes

6 files changed (+117 additions, -67 deletions)

View changed files

📝 management/server/account.go (+2 -1)
📝 management/server/account_test.go (+2 -1)
📝 management/server/http/peers_handler.go (+15 -12)
📝 management/server/peer.go (+14 -8)
📝 management/server/policy.go (+60 -30)
📝 management/server/policy_test.go (+24 -15)

📄 Description

Describe your changes

Pre-expand the peers from policy rules source and destination groups to avoid extra allocation when calculating the network map.

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/2404 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 8/7/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `use-pre-expanded-peers-map` --- ### 📝 Commits (6) - [`ec4469f`](https://github.com/netbirdio/netbird/commit/ec4469f43d141130abb35e1976a6d3c86b80b601) Use policy expanded peers map from src/dest groups - [`a298621`](https://github.com/netbirdio/netbird/commit/a29862182a6c67ec05578bae2af5ddee93494c46) update peers handlers - [`b6a8b1d`](https://github.com/netbirdio/netbird/commit/b6a8b1dbcd120b3c15edb22a0afc519efcfc4432) add docs - [`31dd04e`](https://github.com/netbirdio/netbird/commit/31dd04e835350786ff87bac5dab7d90cc8a3202f) fix map init with peers - [`afbc0e6`](https://github.com/netbirdio/netbird/commit/afbc0e65d748eb2475c86e69e454f0ba1a39da4a) refactor duplicated code - [`d6c5f5e`](https://github.com/netbirdio/netbird/commit/d6c5f5ead869c5fa2a63c1b6e4933262a82f8e48) fix signature ### 📊 Changes **6 files changed** (+117 additions, -67 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+2 -1) 📝 `management/server/account_test.go` (+2 -1) 📝 `management/server/http/peers_handler.go` (+15 -12) 📝 `management/server/peer.go` (+14 -8) 📝 `management/server/policy.go` (+60 -30) 📝 `management/server/policy_test.go` (+24 -15) </details> ### 📄 Description ## Describe your changes Pre-expand the peers from policy rules source and destination groups to avoid extra allocation when calculating the network map. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] 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 05:06:03 -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#19468