mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 07:23:47 +02:00
Do not give attachment warning for generic attachments in VirtualBox.
This commit is contained in:
parent
223f3ee705
commit
c41bec0516
@ -599,7 +599,7 @@ class VirtualBoxVM(BaseVM):
|
|||||||
entry = "nic{}".format(adapter_number + 1)
|
entry = "nic{}".format(adapter_number + 1)
|
||||||
if entry in vm_info:
|
if entry in vm_info:
|
||||||
value = vm_info[entry]
|
value = vm_info[entry]
|
||||||
nics.append(value)
|
nics.append(value.lower())
|
||||||
else:
|
else:
|
||||||
nics.append(None)
|
nics.append(None)
|
||||||
return nics
|
return nics
|
||||||
@ -618,7 +618,7 @@ class VirtualBoxVM(BaseVM):
|
|||||||
self._modify_vm("--cableconnected{} off".format(adapter_number + 1))
|
self._modify_vm("--cableconnected{} off".format(adapter_number + 1))
|
||||||
nio = self._ethernet_adapters[adapter_number].get_nio(0)
|
nio = self._ethernet_adapters[adapter_number].get_nio(0)
|
||||||
if nio:
|
if nio:
|
||||||
if not self._use_any_adapter and attachment not in ("none", "null"):
|
if not self._use_any_adapter and attachment not in ("none", "null", "generic"):
|
||||||
raise VirtualBoxError("Attachment ({}) already configured on adapter {}. "
|
raise VirtualBoxError("Attachment ({}) already configured on adapter {}. "
|
||||||
"Please set it to 'Not attached' to allow GNS3 to use it.".format(attachment,
|
"Please set it to 'Not attached' to allow GNS3 to use it.".format(attachment,
|
||||||
adapter_number + 1))
|
adapter_number + 1))
|
||||||
|
Loading…
Reference in New Issue
Block a user