feat: add broadcast field to interfaces

This commit is contained in:
2026-03-01 11:13:13 +01:00
parent 58ef0dec63
commit 8b787a99c2
5 changed files with 29 additions and 2 deletions

View File

@@ -65,12 +65,14 @@ class ZoneOut(BaseModel):
class InterfaceCreate(BaseModel):
name: str
zone_id: Optional[int] = None
broadcast: str = ""
options: str = ""
class InterfaceUpdate(BaseModel):
name: Optional[str] = None
zone_id: Optional[int] = None
broadcast: Optional[str] = None
options: Optional[str] = None
@@ -79,6 +81,7 @@ class InterfaceOut(BaseModel):
config_id: int
name: str
zone_id: Optional[int]
broadcast: str
options: str
model_config = {"from_attributes": True}