Changeset 92838 in vbox for trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
- Timestamp:
- Dec 8, 2021 10:49:27 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r92304 r92838 1636 1636 return reporter.errorXcpt('NIC enabled status (%s) failed for "%s"' % (iNic, self.sName,)); 1637 1637 1638 try:1639 sAdpName = self.oTstDrv.getNetworkAdapterNameFromType(oNic);1640 ## @todo Remove this check once we have more attachment types that support this.1641 if oNic.attachmentType != vboxcon.NetworkAttachmentType_NAT:1642 # Other attachments will fail if 'LocalhostReachable' extra data override is present1643 ## @todo r=andy Is this still needed, as we now have the API (see above) in place?1644 sKey = 'VBoxInternal/Devices/%s/%d/LUN#0/Config/LocalhostReachable' % (sAdpName, iNic);1645 reporter.log2('Disabling "LocalhostReachable" (NAT) for network adapter "%s" in slot %d (key: %s)' % \1646 (sAdpName, iNic, sKey));1647 self.setExtraData(sKey, '');1648 return True;1649 except:1650 return reporter.errorXcpt('NIC adapter type (%s) failed for "%s"' % (iNic, self.sName,));1651 1652 1638 reporter.log('Setting "LocalhostReachable" for network adapter "%s" in slot %d to %s' % (sAdpName, iNic, fReachable)); 1653 1639 … … 1658 1644 1659 1645 try: 1660 oNatEngine.LocalhostReachable = fReachable; 1646 if hasattr(oNatEngine, "localhostReachable"): 1647 oNatEngine.localhostReachable = fReachable; 1648 else 1649 oNatEngine.LocalhostReachable = fReachable; 1661 1650 except: 1662 1651 return reporter.errorXcpt('LocalhostReachable (%s) failed for "%s"' % (iNic, self.sName,)); … … 2367 2356 if self.fpApiVer >= 4.0: 2368 2357 if not self.setupAudio(eAudioCtlType): fRc = False; 2369 2370 if self.fpApiVer >= 7.0:2371 # Needed to reach the host (localhost) from the guest. See xTracker #9896.2372 for iSlot in range(0, self.oVBox.systemProperties.getMaxNetworkAdapters(self.o.machine.chipsetType)):2373 try:2374 self.setNicLocalhostReachable(True, iSlot);2375 except:2376 reporter.logXcpt();2377 2358 2378 2359 return fRc;
Note:
See TracChangeset
for help on using the changeset viewer.