test nic state link api
This commit is contained in:
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user