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

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

View File

@ -138,6 +138,10 @@ class VM(object):
chassis = request.get("chassis")
router_id = request.get("router_id")
updated_image_path = os.path.join(self.images_directory, image)
if os.path.isfile(updated_image_path):
image = updated_image_path
try:
if platform not in PLATFORMS: