mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 07:11:13 +02:00
feat: add endpoint to get iface/udp tunnel from links with Cloud,Nat
This commit is contained in:
3 files changed
+72
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user