feat(inspector): implement slice 2 comprehensive host state inspector

This commit is contained in:
soda64 committed 2026-10-09 18:48:51 +02:00
1 parent 2602b66a90
commit 66ca179937
11 files changed
+777 -25

No files matched your search

+22
View File
@@ -57,6 +57,28 @@ class ProfileConfig:
def to_dict(self) -> Dict[str, Any]:
return asdict(self)
@dataclass
class StorageState:
block_devices: List[Dict[str, Any]] = field(default_factory=list)
mount_points: List[Dict[str, Any]] = field(default_factory=list)
lvm_pvs: Optional[List[Dict[str, Any]]] = None
lvm_vgs: Optional[List[Dict[str, Any]]] = None
lvm_lvs: Optional[List[Dict[str, Any]]] = None
fstab_raw: str = ""
def to_dict(self) -> Dict[str, Any]:
return asdict(self)
@dataclass
class NetworkState:
interfaces: List[Dict[str, Any]] = field(default_factory=list)
routes: List[Dict[str, Any]] = field(default_factory=list)
dns_servers: List[str] = field(default_factory=list)
hostname: str = ""
def to_dict(self) -> Dict[str, Any]:
return asdict(self)
@dataclass
class SnapshotManifest:
schema_version: str