Semaine 11

This commit is contained in:
gauvainboiche
2026-07-11 21:38:00 +02:00
parent d3d2416dea
commit 0d071d2843
281 changed files with 54412 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
from dataclasses import dataclass, field
from typing import List, Optional
@dataclass
class Interface:
id: Optional[int] = None
port: int = 0
service: str = "[SERVICE]"
equipment_id: Optional[int] = None
@dataclass
class Equipment:
id: Optional[int] = None
hostname: str = "[HOSTNAME]"
type: str = "Server"
ip_address: str = "255.255.255.0"
is_active: bool = True
latency: Optional[float] = None
interfaces: List[Interface] = field(default_factory=list)