MCPcopy Create free account
hub / github.com/eth-easl/dirigent / ReviseDataplanes

Method ReviseDataplanes

internal/data_plane/haproxy/manager.go:353–362  ·  view source on GitHub ↗

ReviseDataplanes Need to call restart after this call

(addressesToKeep []string)

Source from the content-addressed store, hash-verified

351
352// ReviseDataplanes Need to call restart after this call
353func (api *API) ReviseDataplanes(addressesToKeep []string) bool {
354 success, changes := false, false
355
356 for !success {
357 api.client = getHAProxyClient()
358 success, changes = api.genericRevise(DataplaneBackend, addressesToKeep)
359 }
360
361 return changes
362}
363
364func (api *API) DeleteAllDataplanes() {
365 _, servers, err := api.client.Configuration.GetServers(DataplaneBackend, "")

Callers 2

TestDataplanesBackendFunction · 0.80

Calls 2

genericReviseMethod · 0.95
getHAProxyClientFunction · 0.85

Tested by 1

TestDataplanesBackendFunction · 0.64