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