[PR #191] [MERGED] Change Management Sync protocol to support incremental (serial) network changes #2598

Closed
opened 2025-11-20 07:11:49 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/191
Author: @braginini
Created: 1/14/2022
Status: Merged
Merged: 1/16/2022
Merged by: @braginini

Base: mainHead: pass-network-serial-to-cleints


📝 Commits (10+)

  • 282d633 feature: introduce NetworkMap to the management protocol with a Serial ID
  • ecc66af test: add Management Sync method protocol test
  • b76198b test: add Management Sync method NetworkMap field check [FAILING]
  • fb6e6f6 test: add Management Sync method NetworkMap field check [FAILING]
  • fff0618 feature: fill NetworkMap property to when Deleting peer
  • 0696137 feature: fill NetworkMap in the Sync protocol
  • c082b5c test: code review mentions - GeneratePrivateKey() in the test
  • d568173 fix: wiretrustee client use wireguard GeneratePrivateKey() instead of GenerateKey()
  • 80abe29 test: add NetworkMap test
  • 12cdad9 fix: management_proto test remove store.json on test finish

📊 Changes

9 files changed (+777 additions, -152 deletions)

View changed files

📝 client/internal/config.go (+1 -1)
📝 management/proto/management.pb.go (+277 -134)
📝 management/proto/management.proto (+29 -0)
📝 management/server/account_test.go (+3 -3)
📝 management/server/grpcserver.go (+15 -8)
management/server/management_proto_test.go (+348 -0)
📝 management/server/network.go (+5 -0)
📝 management/server/peer.go (+23 -6)
management/server/peer_test.go (+76 -0)

📄 Description

Only Management Service changes + Protocol.
Client will be done in the following PR


🔄 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/191 **Author:** [@braginini](https://github.com/braginini) **Created:** 1/14/2022 **Status:** ✅ Merged **Merged:** 1/16/2022 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `pass-network-serial-to-cleints` --- ### 📝 Commits (10+) - [`282d633`](https://github.com/netbirdio/netbird/commit/282d63301a0bc09131ca65625aaffa8a415f260a) feature: introduce NetworkMap to the management protocol with a Serial ID - [`ecc66af`](https://github.com/netbirdio/netbird/commit/ecc66afc1ac7ffc0f0b73adda18ac75fef1faf7c) test: add Management Sync method protocol test - [`b76198b`](https://github.com/netbirdio/netbird/commit/b76198b5849a882e0aa67475da77f412a1575941) test: add Management Sync method NetworkMap field check [FAILING] - [`fb6e6f6`](https://github.com/netbirdio/netbird/commit/fb6e6f625c2388239d06d5c2440747a6b4ec1a3f) test: add Management Sync method NetworkMap field check [FAILING] - [`fff0618`](https://github.com/netbirdio/netbird/commit/fff061817e854bd1982aacebd070af4ed3cfa3ea) feature: fill NetworkMap property to when Deleting peer - [`0696137`](https://github.com/netbirdio/netbird/commit/0696137c943c88f18c58eecf3bc0f80a66710d8e) feature: fill NetworkMap in the Sync protocol - [`c082b5c`](https://github.com/netbirdio/netbird/commit/c082b5c81ca9f83fdfbdb38df3efe8bffa51acce) test: code review mentions - GeneratePrivateKey() in the test - [`d568173`](https://github.com/netbirdio/netbird/commit/d5681734513b0d33ff51fd56e9df295cb43b21db) fix: wiretrustee client use wireguard GeneratePrivateKey() instead of GenerateKey() - [`80abe29`](https://github.com/netbirdio/netbird/commit/80abe291d1814403c52715731e3af0e7d6711db5) test: add NetworkMap test - [`12cdad9`](https://github.com/netbirdio/netbird/commit/12cdad97eb0d24f06b7bf4ac9b703c4f8dc6b7ce) fix: management_proto test remove store.json on test finish ### 📊 Changes **9 files changed** (+777 additions, -152 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/config.go` (+1 -1) 📝 `management/proto/management.pb.go` (+277 -134) 📝 `management/proto/management.proto` (+29 -0) 📝 `management/server/account_test.go` (+3 -3) 📝 `management/server/grpcserver.go` (+15 -8) ➕ `management/server/management_proto_test.go` (+348 -0) 📝 `management/server/network.go` (+5 -0) 📝 `management/server/peer.go` (+23 -6) ➕ `management/server/peer_test.go` (+76 -0) </details> ### 📄 Description Only Management Service changes + Protocol. Client will be done in the following PR --- <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 2025-11-20 07:11:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2598