mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Use Dynamips, IOU and VPCS identifiers to correctly load a topology.
This commit is contained in:
1 parent
f9ee38dd55
commit
cb763e0926
18 files changed
+115
-55
No files matched your search
@@ -132,9 +132,8 @@ class VM(object):
|
||||
image = request["image"]
|
||||
ram = request["ram"]
|
||||
hypervisor = None
|
||||
chassis = None
|
||||
if "chassis" in request:
|
||||
chassis = request["chassis"]
|
||||
chassis = request.get("chassis")
|
||||
router_id = request.get("router_id")
|
||||
|
||||
try:
|
||||
|
||||
@@ -147,9 +146,9 @@ class VM(object):
|
||||
hypervisor = self._hypervisor_manager.allocate_hypervisor_for_router(image, ram)
|
||||
|
||||
if chassis:
|
||||
router = PLATFORMS[platform](hypervisor, name, chassis=chassis)
|
||||
router = PLATFORMS[platform](hypervisor, name, router_id, chassis=chassis)
|
||||
else:
|
||||
router = PLATFORMS[platform](hypervisor, name)
|
||||
router = PLATFORMS[platform](hypervisor, name, router_id)
|
||||
router.ram = ram
|
||||
router.image = image
|
||||
router.sparsemem = self._hypervisor_manager.sparse_memory_support
|
||||
|
||||
Reference in new issue
Block a user