VirtualBox

Changeset 92199 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Nov 3, 2021 7:27:28 PM (3 years ago)
Author:
vboxsync
Message:

Validation Kit/testdriver: Now using the localhost reachable flag for the NAT attachment type via API. ​bugref:9896

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r92175 r92199  
    29502950                        continue;
    29512951                    sAdpName = self.getNetworkAdapterNameFromType(oNic);
    2952                     sKey = 'VBoxInternal/Devices/%s/%d/LUN#0/Config/LocalhostReachable' % (sAdpName, iSlot);
    29532952                    if oNic.attachmentType == vboxcon.NetworkAttachmentType_NAT:
    2954                         reporter.log2('Enabling "LocalhostReachable" (NAT) for network adapter "%s" in slot %d (key: %s)' % \
    2955                                       (sAdpName, iSlot, sKey));
    2956                         self.oVBox.setExtraData(sKey, '1');
     2953                        reporter.log2('Enabling "LocalhostReachable" (NAT) for network adapter "%s" in slot %d' % \
     2954                                      (sAdpName, iSlot));
     2955                        oNatEngine = oNic.NATEngine;
     2956                        oNatEngine.LocalhostReachable = True;
    29572957                    else:
    29582958                        # Other attachments will fail if 'LocalhostReachable' extra data override is present
     2959                        ## @todo r=andy Is this still needed, as we now have the API (see above) in place?
     2960                        sKey = 'VBoxInternal/Devices/%s/%d/LUN#0/Config/LocalhostReachable' % (sAdpName, iSlot);
    29592961                        reporter.log2('Disabling "LocalhostReachable" (NAT) for network adapter "%s" in slot %d (key: %s)' % \
    29602962                                      (sAdpName, iSlot, sKey));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette