test nic state link api
All checks were successful
Build and Deploy MITM Webserver / traffic_target (push) Successful in 1s
Build and Deploy MITM Webserver / build (push) Successful in 10s

This commit is contained in:
2026-03-09 15:29:53 +01:00
parent d2179b2813
commit 4c491cf4b1
7 changed files with 799 additions and 22 deletions

View File

@@ -46,10 +46,36 @@ export interface BridgeCreateRequest {
name: string;
interfaces: string[];
}
export interface BridgeRemoveRequest {
name: string;
}
export interface BridgeLinkStateEnableRequest {
poll_interval_seconds: number;
}
export interface BridgeMemberLinkStateInfo {
ifname: string;
admin_up?: boolean | null;
carrier_up?: boolean | null;
operstate?: string | null;
link_ready: boolean;
suppressed: boolean;
}
export interface BridgeLinkStateWatcherStatus {
bridge: string;
active: boolean;
poll_interval_seconds?: number | null;
last_poll_ts?: number | null;
last_error?: string | null;
last_action?: string | null;
suppressed_members: string[];
members: Record<string, BridgeMemberLinkStateInfo>;
message?: string | null;
}
// full-state response shape
export interface FullState {
interfaces: InterfaceInfo[];