mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
Ensure we can't connect to occupy port
Ref https://github.com/GNS3/gns3-gui/issues/1759
This commit is contained in:
3 files changed
+47
-2
No files matched your search
@@ -26,6 +26,18 @@ class Port:
|
||||
self._adapter_number = adapter_number
|
||||
self._port_number = port_number
|
||||
self._name = name
|
||||
self._link = None
|
||||
|
||||
@property
|
||||
def link(self):
|
||||
"""
|
||||
Link connected to the port
|
||||
"""
|
||||
return self._link
|
||||
|
||||
@link.setter
|
||||
def link(self, val):
|
||||
self._link = val
|
||||
|
||||
@property
|
||||
def adapter_number(self):
|
||||
|
||||
Reference in new issue
Block a user