mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Return compute port information via API. Ref #1420.
This commit is contained in:
1 parent
eb97ebf311
commit
22f7ca0243
5 files changed
+98
-2
No files matched your search
@@ -67,6 +67,13 @@ class PortManager:
|
||||
cls._instance = cls()
|
||||
return cls._instance
|
||||
|
||||
def __json__(self):
|
||||
|
||||
return {"console_port_range": self._console_port_range,
|
||||
"console_ports": list(self._used_tcp_ports),
|
||||
"udp_port_range": self._udp_port_range,
|
||||
"udp_ports": list(self._used_udp_ports)}
|
||||
|
||||
@property
|
||||
def console_host(self):
|
||||
|
||||
|
||||
Reference in new issue
Block a user