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

Method DeleteAllDataplanes

internal/data_plane/haproxy/manager.go:364–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

362}
363
364func (api *API) DeleteAllDataplanes() {
365 _, servers, err := api.client.Configuration.GetServers(DataplaneBackend, "")
366 if err != nil {
367 fmt.Println(err.Error())
368 }
369
370 for _, s := range servers {
371 api.RemoveDataplane(s.Address, int(*s.Port), false)
372 }
373
374 api.RestartHAProxy()
375}
376
377func (api *API) ReviseHAProxyConfiguration(args *proto.HAProxyConfig) (*proto.ActionStatus, error) {
378 dpChanges := api.ReviseDataplanes(args.Dataplanes)

Callers 1

TestDataplanesBackendFunction · 0.80

Calls 2

RemoveDataplaneMethod · 0.95
RestartHAProxyMethod · 0.95

Tested by 1

TestDataplanesBackendFunction · 0.64