feat: add broadcast field to interfaces
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user