From e8d0f6692b5d0c5092646978f12015337321a34c Mon Sep 17 00:00:00 2001 From: malmert Date: Mon, 24 Nov 2025 17:49:02 +0100 Subject: [PATCH] feat: add BridgeInterfaceInfo and BridgeInfo models with descriptions --- backend/src/network_api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/src/network_api.py b/backend/src/network_api.py index 6378f9d..ee9f8b7 100644 --- a/backend/src/network_api.py +++ b/backend/src/network_api.py @@ -79,12 +79,18 @@ class RouteInfo(BaseModel): ) class BridgeInterfaceInfo(BaseModel): + """ + Represents a network interface which is a member of an bridge. + """ ifindex: int = Field(..., description="Interface index of a bridge member") ifname: str = Field(..., description="Interface name of a bridge member") state: Optional[str] = Field(None, description="Operational state of the interface") mtu: Optional[int] = Field(None, description="MTU of the interface") class BridgeInfo(BaseModel): + """ + Represents a network bridge interface with all its properties. + """ ifindex: int = Field(..., description="Interface index of the bridge") ifname: str = Field(..., description="Bridge interface name") state: Optional[str] = Field(None, description="Operational state of the bridge")