Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Management Sync protocol to support incremental (serial) network changes #191

Merged
merged 10 commits into from
Jan 16, 2022

Conversation

braginini
Copy link
Contributor

@braginini braginini commented Jan 14, 2022

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

@braginini braginini self-assigned this Jan 14, 2022
@braginini braginini linked an issue Jan 14, 2022 that may be closed by this pull request
@braginini braginini requested a review from mlsmaycon January 15, 2022 17:53
@braginini braginini marked this pull request as ready for review January 15, 2022 17:53

var peers = []*wgtypes.Key{}
for i := 0; i < peersNum; i++ {
key, err := wgtypes.GenerateKey()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use GeneratePrivateKey()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@braginini braginini requested a review from mlsmaycon January 16, 2022 13:37
@braginini braginini merged commit afb302d into main Jan 16, 2022
@braginini braginini deleted the pass-network-serial-to-cleints branch January 16, 2022 16:10
pulsastrix pushed a commit to pulsastrix/netbird that referenced this pull request Dec 24, 2023
…rk changes (netbirdio#191)

* feature: introduce NetworkMap to the management protocol with a Serial ID

* test: add Management Sync method protocol test

* test: add Management Sync method NetworkMap field check [FAILING]

* test: add Management Sync method NetworkMap field check [FAILING]

* feature: fill NetworkMap property to when Deleting peer

* feature: fill NetworkMap in the Sync protocol

* test: code review mentions - GeneratePrivateKey() in the test

* fix: wiretrustee client use wireguard GeneratePrivateKey() instead of GenerateKey()

* test: add NetworkMap test

* fix: management_proto test remove store.json on test finish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tracking Network modifications (serial ID)
2 participants