Skip to content

Commit

Permalink
Do not activate sparse memory by default for c1700 and c2600 platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Aug 26, 2014
1 parent 80ab811 commit 76b357c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gns3server/modules/dynamips/backends/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ def vm_create(self, request):
router = PLATFORMS[platform](hypervisor, name, router_id)
router.ram = ram
router.image = image
router.sparsemem = self._hypervisor_manager.sparse_memory_support
if platform not in ("c1700", "c2600"):
router.sparsemem = self._hypervisor_manager.sparse_memory_support
router.mmap = self._hypervisor_manager.mmap_support
if "console" in request:
router.console = request["console"]
Expand Down
4 changes: 3 additions & 1 deletion gns3server/modules/dynamips/nodes/c1700.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def __init__(self, hypervisor, name, router_id=None, chassis="1720"):
self._chassis = chassis
self._iomem = 15 # percentage
self._clock_divisor = 8
self._sparsemem = False

if chassis != "1720":
self.chassis = chassis
Expand All @@ -72,7 +73,8 @@ def defaults(self):
"disk1": self._disk1,
"chassis": self._chassis,
"iomem": self._iomem,
"clock_divisor": self._clock_divisor}
"clock_divisor": self._clock_divisor,
"sparsemem": self._sparsemem}

# update the router defaults with the platform specific defaults
router_defaults.update(platform_defaults)
Expand Down
4 changes: 3 additions & 1 deletion gns3server/modules/dynamips/nodes/c2600.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def __init__(self, hypervisor, name, router_id=None, chassis="2610"):
self._chassis = chassis
self._iomem = 15 # percentage
self._clock_divisor = 8
self._sparsemem = False

if chassis != "2610":
self.chassis = chassis
Expand All @@ -87,7 +88,8 @@ def defaults(self):
"disk1": self._disk1,
"iomem": self._iomem,
"chassis": self._chassis,
"clock_divisor": self._clock_divisor}
"clock_divisor": self._clock_divisor,
"sparsemem": self._sparsemem}

# update the router defaults with the platform specific defaults
router_defaults.update(platform_defaults)
Expand Down

0 comments on commit 76b357c

Please sign in to comment.