mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-19 08:46:38 +00:00
Skip peer update on unchanged network map (#2236)
* Enhance network updates by skipping unchanged messages Optimizes the network update process by skipping updates where no changes in the peer update message received. * Add unit tests * add locks * Improve concurrency and update peer message handling * Refactor account manager network update tests * fix test * Fix inverted network map update condition * Add default group and policy to test data * Run peer updates in a separate goroutine * Refactor * Refactor lock
This commit is contained in:
38
management/server/testdata/store.json
vendored
38
management/server/testdata/store.json
vendored
@@ -19,7 +19,7 @@
|
||||
"Revoked": false,
|
||||
"UsedTimes": 0,
|
||||
"LastUsed": "0001-01-01T00:00:00Z",
|
||||
"AutoGroups": null,
|
||||
"AutoGroups": ["cq9bbkjjuspi5gd38epg"],
|
||||
"UsageLimit": 0,
|
||||
"Ephemeral": false
|
||||
}
|
||||
@@ -69,9 +69,41 @@
|
||||
"LastLogin": "0001-01-01T00:00:00Z"
|
||||
}
|
||||
},
|
||||
"Groups": null,
|
||||
"Groups": {
|
||||
"cq9bbkjjuspi5gd38epg": {
|
||||
"ID": "cq9bbkjjuspi5gd38epg",
|
||||
"Name": "All",
|
||||
"Peers": []
|
||||
}
|
||||
},
|
||||
"Rules": null,
|
||||
"Policies": [],
|
||||
"Policies": [
|
||||
{
|
||||
"ID": "cq9bbkjjuspi5gd38eq0",
|
||||
"Name": "Default",
|
||||
"Description": "This is a default rule that allows connections between all the resources",
|
||||
"Enabled": true,
|
||||
"Rules": [
|
||||
{
|
||||
"ID": "cq9bbkjjuspi5gd38eq0",
|
||||
"Name": "Default",
|
||||
"Description": "This is a default rule that allows connections between all the resources",
|
||||
"Enabled": true,
|
||||
"Action": "accept",
|
||||
"Destinations": [
|
||||
"cq9bbkjjuspi5gd38epg"
|
||||
],
|
||||
"Sources": [
|
||||
"cq9bbkjjuspi5gd38epg"
|
||||
],
|
||||
"Bidirectional": true,
|
||||
"Protocol": "all",
|
||||
"Ports": null
|
||||
}
|
||||
],
|
||||
"SourcePostureChecks": null
|
||||
}
|
||||
],
|
||||
"Routes": null,
|
||||
"NameServerGroups": null,
|
||||
"DNSSettings": null,
|
||||
|
||||
Reference in New Issue
Block a user