mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-11 16:41:04 +00:00
Avoid sending warning message all the time for Ethernet switch.
This commit is contained in:
parent
40d7ae6866
commit
a86f881d83
@ -132,10 +132,11 @@ class EthernetSwitch(Device):
|
|||||||
@console_type.setter
|
@console_type.setter
|
||||||
def console_type(self, console_type):
|
def console_type(self, console_type):
|
||||||
|
|
||||||
if console_type == "telnet":
|
if self._console_type != console_type:
|
||||||
self.project.emit("log.warning", {
|
if console_type == "telnet":
|
||||||
"message": '"{name}": Telnet access for switches is not available in this version of GNS3'.format(name=self._name)})
|
self.project.emit("log.warning", {
|
||||||
self._console_type = console_type
|
"message": '"{name}": Telnet access for switches is not available in this version of GNS3'.format(name=self._name)})
|
||||||
|
self._console_type = console_type
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def ports_mapping(self):
|
def ports_mapping(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user