From 566c48ffedf6be38ef47fe0ae93e010ce71b9599 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 20 May 2014 10:37:11 -0600 Subject: [PATCH] Send error if L1 keepalive messages are not supported. --- gns3server/modules/iou/iou_device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/iou/iou_device.py b/gns3server/modules/iou/iou_device.py index 90e00e1a..527e7d14 100644 --- a/gns3server/modules/iou/iou_device.py +++ b/gns3server/modules/iou/iou_device.py @@ -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): """