log.error("Could not convert system property to integer: {} = {}".format(max_adapter_string,self._system_properties[max_adapter_string]))
else:
log.warning("Could not find system property '{}' for chipset {}".format(max_adapter_string,chipset))
log.info("VirtualBox VM '{name}' [{id}] can have a maximum of {max} network adapters for chipset {chipset}".format(name=self.name,
id=self.id,
max=self._maximum_adapters,
chipset=chipset.upper()))
ifadapters>self._maximum_adapters:
ifadapters>self._maximum_adapters:
raiseVirtualBoxError("Number of adapters above the maximum supported of {}".format(self._maximum_adapters))
raiseVirtualBoxError("The configured {} chipset limits the VM to {} network adapters. The chipset can be changed outside GNS3 in the VirtualBox VM settings.".format(chipset.upper(),
self._maximum_adapters))
self._ethernet_adapters.clear()
self._ethernet_adapters.clear()
foradapter_numberinrange(0,adapters):
foradapter_numberinrange(0,adapters):
@ -743,23 +761,6 @@ class VirtualBoxVM(BaseNode):
vm_info[name.strip('"')]=value.strip('"')
vm_info[name.strip('"')]=value.strip('"')
returnvm_info
returnvm_info
@asyncio.coroutine
def_get_maximum_supported_adapters(self):
"""
ReturnsthemaximumadapterssupportedbythisVM.
:returns:maximumnumberofsupportedadapters(int)
"""
# check the maximum number of adapters supported by the VM