mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
Send error if L1 keepalive messages are not supported.
This commit is contained in:
parent
77b845a17f
commit
566c48ffed
@ -104,7 +104,7 @@ class IOUDevice(object):
|
|||||||
self._nvram = 128 # Kilobytes
|
self._nvram = 128 # Kilobytes
|
||||||
self._startup_config = ""
|
self._startup_config = ""
|
||||||
self._ram = 256 # Megabytes
|
self._ram = 256 # Megabytes
|
||||||
self._l1_keepalives = True
|
self._l1_keepalives = False # used to overcome the always-up Ethernet interfaces (not supported by all IOSes).
|
||||||
|
|
||||||
# update the working directory
|
# update the working directory
|
||||||
self.working_dir = working_dir
|
self.working_dir = working_dir
|
||||||
@ -728,7 +728,7 @@ class IOUDevice(object):
|
|||||||
if re.search("-l\s+Enable Layer 1 keepalive messages", output.decode("utf-8")):
|
if re.search("-l\s+Enable Layer 1 keepalive messages", output.decode("utf-8")):
|
||||||
command.extend(["-l"])
|
command.extend(["-l"])
|
||||||
else:
|
else:
|
||||||
log.warn("layer 1 keepalive messages are not supported by {}".format(os.path.basename(self._path)))
|
raise IOUError("layer 1 keepalive messages are not supported by {}".format(os.path.basename(self._path)))
|
||||||
|
|
||||||
def _build_command(self):
|
def _build_command(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user