Find an alternative IOS or IOU image if one cannot be found when importing a topology.

This commit is contained in:
grossmj committed 2014-07-06 16:34:38 -06:00
1 parent 551b98880b
commit 9fc7650f3f
4 files changed
+19 -1

No files matched your search

+4
View File
@@ -295,6 +295,10 @@ class IOU(IModule):
console = request.get("console")
iou_id = request.get("iou_id")
updated_iou_path = os.path.join(self.images_directory, iou_path)
if os.path.isfile(updated_iou_path):
iou_path = updated_iou_path
try:
iou_instance = IOUDevice(name,
iou_path,