From 8fcfed53ede2cf0c692f16ff6cc73798e383acc8 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 24 Oct 2017 15:07:32 +0700 Subject: [PATCH] Add warning when using IOU with a hostname length above 15 characters. --- gns3server/compute/iou/iou_vm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gns3server/compute/iou/iou_vm.py b/gns3server/compute/iou/iou_vm.py index e156668e..0dcf0c88 100644 --- a/gns3server/compute/iou/iou_vm.py +++ b/gns3server/compute/iou/iou_vm.py @@ -380,6 +380,8 @@ class IOUVM(BaseNode): if "license" not in config: raise IOUError("License section not found in iourc file {}".format(self.iourc_path)) hostname = socket.gethostname() + if len(hostname) > 15: + log.warning("Older IOU images may not boot because hostname '{}' length is above 15 characters".format(hostname)) if hostname not in config["license"]: raise IOUError("Hostname \"{}\" not found in iourc file {}".format(hostname, self.iourc_path)) user_ioukey = config["license"][hostname]