From c41bec0516afe83afd6cadedbef3c5be67bd835b Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 11 Mar 2015 12:05:22 -0600 Subject: [PATCH] Do not give attachment warning for generic attachments in VirtualBox. --- gns3server/modules/virtualbox/virtualbox_vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/virtualbox/virtualbox_vm.py b/gns3server/modules/virtualbox/virtualbox_vm.py index c6151f2a..7375eb1d 100644 --- a/gns3server/modules/virtualbox/virtualbox_vm.py +++ b/gns3server/modules/virtualbox/virtualbox_vm.py @@ -599,7 +599,7 @@ class VirtualBoxVM(BaseVM): entry = "nic{}".format(adapter_number + 1) if entry in vm_info: value = vm_info[entry] - nics.append(value) + nics.append(value.lower()) else: nics.append(None) return nics @@ -618,7 +618,7 @@ class VirtualBoxVM(BaseVM): self._modify_vm("--cableconnected{} off".format(adapter_number + 1)) nio = self._ethernet_adapters[adapter_number].get_nio(0) 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 {}. " "Please set it to 'Not attached' to allow GNS3 to use it.".format(attachment, adapter_number + 1))