1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Change default VirtualBox adapter type.

This commit is contained in:
Jeremy 2014-11-04 19:00:01 -07:00
parent 7809160ea1
commit a98a8b1acc
2 changed files with 6 additions and 6 deletions

View File

@ -293,10 +293,8 @@ class Dynamips(IModule):
"""
Set or update settings.
Mandatory request parameters:
- path (path to the Dynamips executable)
Optional request parameters:
- path (path to the Dynamips executable)
- working_dir (path to a working directory)
- project_name
@ -311,7 +309,9 @@ class Dynamips(IModule):
#TODO: JSON schema validation
if not self._hypervisor_manager:
self._dynamips = request.pop("path")
if "path" in request:
self._dynamips = request.pop("path")
if "working_dir" in request:
self._working_dir = request.pop("working_dir")

View File

@ -106,7 +106,7 @@ class VirtualBoxVM(object):
self._enable_console = True
self._vmname = vmname
self._adapter_start_index = 0
self._adapter_type = "Automatic"
self._adapter_type = "Intel PRO/1000 MT Desktop (82540EM)"
working_dir_path = os.path.join(working_dir, "vbox", "vm-{}".format(self._id))
@ -156,7 +156,7 @@ class VirtualBoxVM(object):
"vmname": self._vmname,
"adapters": self.adapters,
"adapter_start_index": self._adapter_start_index,
"adapter_type": "Automatic",
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
"console": self._console,
"enable_console": self._enable_console,
"headless": self._headless}