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")