mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-17 06:48:18 +00:00
Merge pull request #239 from GNS3/vmx_case_insensitive
Makes VMX keys reading case insensitive.
This commit is contained in:
@ -178,6 +178,7 @@ class VMwareVM(BaseVM):
|
||||
|
||||
def _get_vmx_setting(self, name, value=None):
|
||||
|
||||
name = name.lower()
|
||||
if name in self._vmx_pairs:
|
||||
if value is not None:
|
||||
if self._vmx_pairs[name] == value:
|
||||
@ -271,7 +272,7 @@ class VMwareVM(BaseVM):
|
||||
bridge_name = "bridge{}".format(adapter_number)
|
||||
|
||||
vnet = "ethernet{}.vnet".format(adapter_number)
|
||||
if not vnet in self._vmx_pairs:
|
||||
if vnet not in self._vmx_pairs:
|
||||
continue
|
||||
|
||||
vmnet_interface = os.path.basename(self._vmx_pairs[vnet])
|
||||
@ -330,7 +331,7 @@ class VMwareVM(BaseVM):
|
||||
"""
|
||||
|
||||
try:
|
||||
#self._update_ubridge_config()
|
||||
# self._update_ubridge_config()
|
||||
command = [self.ubridge_path]
|
||||
log.info("starting ubridge: {}".format(command))
|
||||
self._ubridge_stdout_file = os.path.join(self.working_dir, "ubridge.log")
|
||||
|
Reference in New Issue
Block a user