mirror of
https://github.com/GNS3/gns3-registry.git
synced 2024-12-18 20:37:57 +00:00
Support veos
This commit is contained in:
parent
efb3381607
commit
148095aa1d
@ -94,6 +94,8 @@ class Registry:
|
|||||||
"""
|
"""
|
||||||
:returns: True if image is present in configuration
|
:returns: True if image is present in configuration
|
||||||
"""
|
"""
|
||||||
|
matched = False
|
||||||
|
|
||||||
for image_type in config.get("images", {}):
|
for image_type in config.get("images", {}):
|
||||||
images = config["images"].get(image_type, [])
|
images = config["images"].get(image_type, [])
|
||||||
# If it's not a list it's mean we have already detect the image
|
# If it's not a list it's mean we have already detect the image
|
||||||
@ -104,8 +106,8 @@ class Registry:
|
|||||||
if file.get("sha1sum", None) == image.sha1sum:
|
if file.get("sha1sum", None) == image.sha1sum:
|
||||||
image.version = file["version"]
|
image.version = file["version"]
|
||||||
config["images"][image_type] = image
|
config["images"][image_type] = image
|
||||||
return True
|
matched = True
|
||||||
return False
|
return matched
|
||||||
|
|
||||||
def _get_devices_path(self):
|
def _get_devices_path(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user