[PR #369] [MERGED] Send netmask from account network #12544

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/369
Author: @mlsmaycon
Created: 6/24/2022
Status: Merged
Merged: 6/24/2022
Merged by: @mlsmaycon

Base: mainHead: send-netmask-from-account


📝 Commits (3)

  • 5f6a3eb Send netmask from account network
  • 9cf3908 check if the network is the same for 2 peers
  • 45a5be2 Use expect with BeEquivalentTo

📊 Changes

6 files changed (+121 additions, -8 deletions)

View changed files

📝 management/server/account.go (+1 -0)
📝 management/server/grpcserver.go (+13 -7)
📝 management/server/management_test.go (+16 -0)
📝 management/server/mock_server/account_mock.go (+9 -0)
📝 management/server/peer.go (+16 -1)
📝 management/server/peer_test.go (+66 -0)

📄 Description

Added the GetPeerNetwork method to account manager

Pass a copy of the network to the toPeerConfig function
to retrieve the netmask from the network instead of constant

updated methods and added test


🔄 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/369 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 6/24/2022 **Status:** ✅ Merged **Merged:** 6/24/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `send-netmask-from-account` --- ### 📝 Commits (3) - [`5f6a3eb`](https://github.com/netbirdio/netbird/commit/5f6a3ebfd5b90b2437f48ac75dd1e78aaa4516d0) Send netmask from account network - [`9cf3908`](https://github.com/netbirdio/netbird/commit/9cf39082c8c74c53bd2636ff447e6ca4b8e62540) check if the network is the same for 2 peers - [`45a5be2`](https://github.com/netbirdio/netbird/commit/45a5be285519d12252c578eee1570eea17e3cd2d) Use expect with BeEquivalentTo ### 📊 Changes **6 files changed** (+121 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+1 -0) 📝 `management/server/grpcserver.go` (+13 -7) 📝 `management/server/management_test.go` (+16 -0) 📝 `management/server/mock_server/account_mock.go` (+9 -0) 📝 `management/server/peer.go` (+16 -1) 📝 `management/server/peer_test.go` (+66 -0) </details> ### 📄 Description Added the GetPeerNetwork method to account manager Pass a copy of the network to the toPeerConfig function to retrieve the netmask from the network instead of constant updated methods and added test --- <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:06:08 -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#12544