[PR #3154] [MERGED] [management] Add support for disabling resources and routing peers in networks #16551

Closed
opened 2026-08-05 04:06:16 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3154
Author: @bcmmbaga
Created: 1/6/2025
Status: Merged
Merged: 1/8/2025
Merged by: @bcmmbaga

Base: mainHead: feature/disable-resources-routing-peers


📝 Commits (8)

  • 1010dff sync openapi changes
  • c551830 add option to disable network resource(s)
  • d7b2c88 add network resource enabled state from api
  • 7daa74b fix tests
  • 063784c add option to disable network router(s)
  • 9731e6c fix tests
  • 3918a8d Add tests
  • f5449bf migrate old network resources and routers

📊 Changes

13 files changed (+188 additions, -14 deletions)

View changed files

📝 management/server/http/api/openapi.yml (+16 -3)
📝 management/server/http/api/types.gen.go (+15 -0)
📝 management/server/migration/migration.go (+50 -0)
📝 management/server/networks/resources/manager.go (+1 -1)
📝 management/server/networks/resources/types/resource.go (+7 -2)
📝 management/server/networks/routers/manager_test.go (+4 -4)
📝 management/server/networks/routers/types/router.go (+6 -1)
📝 management/server/networks/routers/types/router_test.go (+10 -1)
📝 management/server/route_test.go (+12 -0)
📝 management/server/store/sql_store_test.go (+2 -2)
📝 management/server/store/store.go (+6 -0)
📝 management/server/types/account.go (+12 -0)
📝 management/server/types/account_test.go (+47 -0)

📄 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/3154 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 1/6/2025 **Status:** ✅ Merged **Merged:** 1/8/2025 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `main` ← **Head:** `feature/disable-resources-routing-peers` --- ### 📝 Commits (8) - [`1010dff`](https://github.com/netbirdio/netbird/commit/1010dfff9ee29066628af82e4a2358c6cc7e659c) sync openapi changes - [`c551830`](https://github.com/netbirdio/netbird/commit/c5518303d6482ccf72aa674d5d3144381439b502) add option to disable network resource(s) - [`d7b2c88`](https://github.com/netbirdio/netbird/commit/d7b2c88b9f4702135399fb939b3e7bae7c52c2d2) add network resource enabled state from api - [`7daa74b`](https://github.com/netbirdio/netbird/commit/7daa74bedcad694451cbf3246a54fb2d146c6411) fix tests - [`063784c`](https://github.com/netbirdio/netbird/commit/063784cbcf3219019516fb9ea86ec48e2f2ce184) add option to disable network router(s) - [`9731e6c`](https://github.com/netbirdio/netbird/commit/9731e6c71d9ffbbcc55ea39d42889a2496812e2a) fix tests - [`3918a8d`](https://github.com/netbirdio/netbird/commit/3918a8dffad2c02255c9c8fe76f60659a8789a77) Add tests - [`f5449bf`](https://github.com/netbirdio/netbird/commit/f5449bfd67b43ff71523667309cba36dd90952f4) migrate old network resources and routers ### 📊 Changes **13 files changed** (+188 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `management/server/http/api/openapi.yml` (+16 -3) 📝 `management/server/http/api/types.gen.go` (+15 -0) 📝 `management/server/migration/migration.go` (+50 -0) 📝 `management/server/networks/resources/manager.go` (+1 -1) 📝 `management/server/networks/resources/types/resource.go` (+7 -2) 📝 `management/server/networks/routers/manager_test.go` (+4 -4) 📝 `management/server/networks/routers/types/router.go` (+6 -1) 📝 `management/server/networks/routers/types/router_test.go` (+10 -1) 📝 `management/server/route_test.go` (+12 -0) 📝 `management/server/store/sql_store_test.go` (+2 -2) 📝 `management/server/store/store.go` (+6 -0) 📝 `management/server/types/account.go` (+12 -0) 📝 `management/server/types/account_test.go` (+47 -0) </details> ### 📄 Description ## Describe your changes ## 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 04:06:16 -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#16551