traffic: add per-app runtime app routing via cgroup marks
This commit is contained in:
@@ -32,6 +32,8 @@ from api_client import (
|
||||
LoginState,
|
||||
Status,
|
||||
TrafficCandidates,
|
||||
TrafficAppMarksResult,
|
||||
TrafficAppMarksStatus,
|
||||
TrafficInterfaces,
|
||||
TrafficModeStatus,
|
||||
TraceDump,
|
||||
@@ -705,6 +707,23 @@ class DashboardController:
|
||||
def traffic_candidates(self) -> TrafficCandidates:
|
||||
return self.client.traffic_candidates_get()
|
||||
|
||||
def traffic_appmarks_status(self) -> TrafficAppMarksStatus:
|
||||
return self.client.traffic_appmarks_status()
|
||||
|
||||
def traffic_appmarks_apply(
|
||||
self,
|
||||
*,
|
||||
op: str,
|
||||
target: str,
|
||||
cgroup: str = "",
|
||||
timeout_sec: int = 0,
|
||||
) -> TrafficAppMarksResult:
|
||||
return self.client.traffic_appmarks_apply(
|
||||
op=op,
|
||||
target=target,
|
||||
cgroup=cgroup,
|
||||
timeout_sec=timeout_sec,
|
||||
)
|
||||
|
||||
def routes_nft_progress_from_event(self, ev: Event) -> RoutesNftProgressView:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user