dns: switch to active upstream pool and wave fallback behavior
This commit is contained in:
@@ -26,6 +26,7 @@ from api_client import (
|
||||
CmdResult,
|
||||
DNSBenchmarkResponse,
|
||||
DNSBenchmarkUpstream,
|
||||
DNSUpstreamPoolState,
|
||||
DNSStatus,
|
||||
DnsUpstreams,
|
||||
DomainsFile,
|
||||
@@ -870,6 +871,12 @@ class DashboardController:
|
||||
def dns_upstreams_save(self, cfg: DnsUpstreams) -> None:
|
||||
self.client.dns_upstreams_set(cfg)
|
||||
|
||||
def dns_upstream_pool_view(self) -> DNSUpstreamPoolState:
|
||||
return self.client.dns_upstream_pool_get()
|
||||
|
||||
def dns_upstream_pool_save(self, items: List[DNSBenchmarkUpstream]) -> DNSUpstreamPoolState:
|
||||
return self.client.dns_upstream_pool_set(items)
|
||||
|
||||
def dns_benchmark(
|
||||
self,
|
||||
upstreams: List[DNSBenchmarkUpstream],
|
||||
|
||||
Reference in New Issue
Block a user