This commit is contained in:
Denozordec
2026-05-03 11:16:07 +07:00
parent ce00c4c671
commit bdb9b72fac
66 changed files with 9553 additions and 1547 deletions
+9 -3
View File
@@ -58,9 +58,12 @@ export interface Server {
// home-router specific
wanUplinks?: WanUplink[]
lanSubnet?: string // e.g. "192.168.10.0/24"
// snapshot / poll data
// snapshot / poll data (как GET /api/servers — последний poll MikroTik)
uptime?: string
cpuLoad?: number
/** байты, поля RouterOS resource */
freeMemory?: number
totalMemory?: number
polledAt?: string
}
@@ -246,6 +249,8 @@ export interface PingProbe {
status: "up" | "warn" | "down"
series: number[]
enabled: boolean
/** Показывать в блоке «Активные пробы» на дашборде (звезда в мониторинге) */
showOnDashboard?: boolean
}
export interface SystemEvent {
@@ -607,8 +612,9 @@ export interface FilterRule {
community: string // BGP community, e.g. "65001:100"
communityName?: string // optional human-readable name
action?: "route" | "blackhole" // default "route"; "blackhole" → null-route (RTBH)
gateway: string // remote inner IP of GRE tunnel; empty for blackhole
gatewayTunnelId: string // reference to greTunnel.id; empty for blackhole
gateway: string // next-hop IP for filter rule; empty for blackhole
/** GRE: id туннеля / имя интерфейса; рекурсивный маршрут: `rec:<id>` строки recursive_routes на сервере */
gatewayTunnelId: string
description: string
}