mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Finalize image management refactoring and auto install appliance if possible
This commit is contained in:
1 parent
b683659d21
commit
bc36d95060
10 files changed
+281
-36
No files matched your search
@@ -68,6 +68,16 @@ class Appliance:
|
||||
def symbol(self, new_symbol):
|
||||
self._data["symbol"] = new_symbol
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
|
||||
if "iou" in self._data:
|
||||
return "iou"
|
||||
elif "dynamips" in self._data:
|
||||
return "dynamips"
|
||||
else:
|
||||
return "qemu"
|
||||
|
||||
def asdict(self):
|
||||
"""
|
||||
Appliance data (a hash)
|
||||
|
||||
Reference in new issue
Block a user