feat: add endpoint to get iface/udp tunnel from links with Cloud,Nat

This commit is contained in:
Mark Paronyan committed 2025-03-23 13:46:27 +00:00
1 parent 8e6f5d2b57
commit ea2856289a
3 files changed
+72 -1

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ from .common import ErrorMessage
from .version import Version
# Controller schemas
from .controller.links import LinkCreate, LinkUpdate, Link
from .controller.links import LinkCreate, LinkUpdate, Link, UdpPort, EthernetPort
from .controller.computes import ComputeCreate, ComputeUpdate, ComputeVirtualBoxVM, ComputeVMwareVM, ComputeDockerImage, AutoIdlePC, Compute
from .controller.templates import TemplateCreate, TemplateUpdate, TemplateUsage, Template
from .controller.images import Image, ImageType
+18
View File
@@ -92,3 +92,21 @@ class Link(LinkBase):
None,
description="Read only property. The compute identifier where a capture is running"
)
class UdpPort(BaseModel):
"""
UDP port information.
"""
lport: int
rhost: str
rport: int
class EthernetPort(BaseModel):
"""
Ethernet port information.
"""
interface: str