Changeset 64517 in vbox
- Timestamp:
- Nov 2, 2016 11:07:14 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 111666
- Location:
- trunk/src/VBox/Main/xml
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r64273 r64517 3440 3440 enmAttachmentType = NetworkAttachmentType_Bridged; 3441 3441 3442 elmMode.getAttributeValue("name", nic.strBridgedName); // optional bridged interface name 3442 // optional network name, cannot be required or we have trouble with 3443 // settings which are saved before configuring the network name 3444 elmMode.getAttributeValue("name", nic.strBridgedName); 3443 3445 } 3444 3446 else if (elmMode.nameEquals("InternalNetwork")) … … 3446 3448 enmAttachmentType = NetworkAttachmentType_Internal; 3447 3449 3448 if (!elmMode.getAttributeValue("name", nic.strInternalNetworkName)) // required network name 3449 throw ConfigFileError(this, &elmMode, N_("Required InternalNetwork/@name element is missing")); 3450 // optional network name, cannot be required or we have trouble with 3451 // settings which are saved before configuring the network name 3452 elmMode.getAttributeValue("name", nic.strInternalNetworkName); 3450 3453 } 3451 3454 else if (elmMode.nameEquals("HostOnlyInterface")) … … 3453 3456 enmAttachmentType = NetworkAttachmentType_HostOnly; 3454 3457 3455 if (!elmMode.getAttributeValue("name", nic.strHostOnlyName)) // required network name 3456 throw ConfigFileError(this, &elmMode, N_("Required HostOnlyInterface/@name element is missing")); 3458 // optional network name, cannot be required or we have trouble with 3459 // settings which are saved before configuring the network name 3460 elmMode.getAttributeValue("name", nic.strHostOnlyName); 3457 3461 } 3458 3462 else if (elmMode.nameEquals("GenericInterface")) … … 3482 3486 enmAttachmentType = NetworkAttachmentType_NATNetwork; 3483 3487 3484 if (!elmMode.getAttributeValue("name", nic.strNATNetworkName)) // required network name 3485 throw ConfigFileError(this, &elmMode, N_("Required NATNetwork/@name element is missing")); 3488 // optional network name, cannot be required or we have trouble with 3489 // settings which are saved before configuring the network name 3490 elmMode.getAttributeValue("name", nic.strNATNetworkName); 3486 3491 } 3487 3492 else if (elmMode.nameEquals("VDE")) 3488 3493 { 3494 // inofficial hack (VDE networking was never part of the official 3495 // settings, so it's not mentioned in VirtualBox-settings.xsd) 3489 3496 enmAttachmentType = NetworkAttachmentType_Generic; 3490 3497 -
trunk/src/VBox/Main/xml/VirtualBox-settings.xsd
r63774 r64517 937 937 938 938 <xsd:complexType name="TNetNATNetwork"> 939 <xsd:attribute name="name" type="xsd:string" use="required"/>939 <xsd:attribute name="name" type="xsd:string"/> 940 940 </xsd:complexType> 941 941 942 942 <xsd:complexType name="TNetBridged"> 943 <xsd:attribute name="name" type="xsd:string" use="required"/>943 <xsd:attribute name="name" type="xsd:string"/> 944 944 </xsd:complexType> 945 945 946 946 <xsd:complexType name="TNetInternal"> 947 <xsd:attribute name="name" type="xsd:string" use="required"/>947 <xsd:attribute name="name" type="xsd:string"/> 948 948 </xsd:complexType> 949 949 950 950 <xsd:complexType name="TNetHostOnly"> 951 <xsd:attribute name="name" type="xsd:string" use="required"/>951 <xsd:attribute name="name" type="xsd:string"/> 952 952 </xsd:complexType> 953 953
Note:
See TracChangeset
for help on using the changeset viewer.