- Timestamp:
- Jul 21, 2019 2:14:57 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r79908 r79911 1438 1438 except: 1439 1439 reporter.errorXcpt(); 1440 1440 1441 elif eAttachmentType == vboxcon.NetworkAttachmentType_HostOnly: 1441 1442 try: … … 1451 1452 reporter.errorXcpt(); 1452 1453 if sRetName == '': 1453 sRetName = 'HostInterfaceNetwork-vboxnet0'; 1454 # Create a new host-only interface. 1455 try: 1456 (oIHostOnly, oIProgress) = self.oVBox.host.createHostOnlyNetworkInterface(); 1457 oProgress = ProgressWrapper(oIProgress, self.oVBoxMgr, self.oTstDrv, 'Create host only interface'); 1458 oProgress.wait(); 1459 if oProgress.logResult() is False: 1460 return ''; 1461 sRetName = oIHostOnly.name; 1462 except: 1463 reporter.errorXcpt(); 1464 return ''; 1465 1454 1466 elif eAttachmentType == vboxcon.NetworkAttachmentType_Internal: 1455 1467 sRetName = 'VBoxTest'; 1468 1456 1469 elif eAttachmentType == vboxcon.NetworkAttachmentType_NAT: 1457 1470 sRetName = ''; 1458 else: 1471 1472 else: ## @todo Support NetworkAttachmentType_NATNetwork 1459 1473 reporter.error('eAttachmentType=%s is not known' % (eAttachmentType)); 1460 1474 return sRetName;
Note:
See TracChangeset
for help on using the changeset viewer.