mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 16:28:11 +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._startup_config = ""
|
||||
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
|
||||
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")):
|
||||
command.extend(["-l"])
|
||||
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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user