[PR #3066] [MERGED] [management] Refactor network map generation #21364

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3066
Author: @bcmmbaga
Created: 12/17/2024
Status: Merged
Merged: 12/19/2024
Merged by: @bcmmbaga

Base: feature/new-networks-conceptHead: refactor/new-concept-netmap-gen


📝 Commits (10+)

  • e8f7b7f Refactor router peer validation
  • be341db Merge branch 'feature/new-networks-concept' into refactor/new-concept-netmap-gen
  • dfa453a convert resource to route if resource has policy
  • 57eac88 wip: generate routes for resource with no policy
  • 400a138 wip: add missing routers
  • 7ba6634 fix tests
  • a9360dc Removed unused code and filter network resources HA routes
  • 9faf672 Add tests
  • a1c0e54 using policy for network resource
  • 2b12560 set -p 1

📊 Changes

10 files changed (+320 additions, -177 deletions)

View changed files

📝 .github/workflows/golang-test-linux.yml (+1 -1)
📝 management/server/account_test.go (+13 -13)
📝 management/server/http/handlers/peers/peers_handler.go (+1 -1)
📝 management/server/networks/resources/types/resource.go (+1 -1)
📝 management/server/peer.go (+7 -5)
📝 management/server/peer_test.go (+39 -17)
📝 management/server/route_test.go (+88 -35)
📝 management/server/types/account.go (+129 -78)
📝 management/server/types/policy.go (+9 -0)
📝 route/route.go (+32 -26)

📄 Description

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/3066 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 12/17/2024 **Status:** ✅ Merged **Merged:** 12/19/2024 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `feature/new-networks-concept` ← **Head:** `refactor/new-concept-netmap-gen` --- ### 📝 Commits (10+) - [`e8f7b7f`](https://github.com/netbirdio/netbird/commit/e8f7b7f23d0f3becb0c4d71f2144ab23f154324d) Refactor router peer validation - [`be341db`](https://github.com/netbirdio/netbird/commit/be341db10ad73da6b247142179cbc1ecc5a93d0b) Merge branch 'feature/new-networks-concept' into refactor/new-concept-netmap-gen - [`dfa453a`](https://github.com/netbirdio/netbird/commit/dfa453abe701e60ec7294f95d8e9c4387532f940) convert resource to route if resource has policy - [`57eac88`](https://github.com/netbirdio/netbird/commit/57eac8824f06f9a63dc55df75c12d4248d9e1f4f) wip: generate routes for resource with no policy - [`400a138`](https://github.com/netbirdio/netbird/commit/400a138c7686a36312c67b3dffa8ce3bf0ce584b) wip: add missing routers - [`7ba6634`](https://github.com/netbirdio/netbird/commit/7ba6634e31edcf953ce679fe6f46aaf666af8c1f) fix tests - [`a9360dc`](https://github.com/netbirdio/netbird/commit/a9360dce9bc29286f93178505f858e8a8bef4b3f) Removed unused code and filter network resources HA routes - [`9faf672`](https://github.com/netbirdio/netbird/commit/9faf6720c69c665b005063271223817ecaa48980) Add tests - [`a1c0e54`](https://github.com/netbirdio/netbird/commit/a1c0e54e83c8cb9c0ccf8008ee1eaee366aae1b6) using policy for network resource - [`2b12560`](https://github.com/netbirdio/netbird/commit/2b12560802e349a1b339ec494e41e35921d3e4dc) set -p 1 ### 📊 Changes **10 files changed** (+320 additions, -177 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/golang-test-linux.yml` (+1 -1) 📝 `management/server/account_test.go` (+13 -13) 📝 `management/server/http/handlers/peers/peers_handler.go` (+1 -1) 📝 `management/server/networks/resources/types/resource.go` (+1 -1) 📝 `management/server/peer.go` (+7 -5) 📝 `management/server/peer_test.go` (+39 -17) 📝 `management/server/route_test.go` (+88 -35) 📝 `management/server/types/account.go` (+129 -78) 📝 `management/server/types/policy.go` (+9 -0) 📝 `route/route.go` (+32 -26) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [x] 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:08:25 -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#21364