VirtualBox

Changeset 92175 in vbox for trunk


Ignore:
Timestamp:
Nov 2, 2021 11:15:38 AM (3 years ago)
Author:
vboxsync
Message:

ValidationKit: bugref:9896 Delete 'LocalhostReachable' in extra data for non-NAT attachments.

File:
1 edited

Legend:

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

    r92131 r92175  
    29492949                    if not oNic.enabled:
    29502950                        continue;
     2951                    sAdpName = self.getNetworkAdapterNameFromType(oNic);
     2952                    sKey = 'VBoxInternal/Devices/%s/%d/LUN#0/Config/LocalhostReachable' % (sAdpName, iSlot);
    29512953                    if oNic.attachmentType == vboxcon.NetworkAttachmentType_NAT:
    2952                         sAdpName = self.getNetworkAdapterNameFromType(oNic);
    2953                         sKey = 'VBoxInternal/Devices/%s/%d/LUN#0/Config/LocalhostReachable' % (sAdpName, iSlot);
    29542954                        reporter.log2('Enabling "LocalhostReachable" (NAT) for network adapter "%s" in slot %d (key: %s)' % \
    29552955                                      (sAdpName, iSlot, sKey));
    29562956                        self.oVBox.setExtraData(sKey, '1');
     2957                    else:
     2958                        # Other attachments will fail if 'LocalhostReachable' extra data override is present
     2959                        reporter.log2('Disabling "LocalhostReachable" (NAT) for network adapter "%s" in slot %d (key: %s)' % \
     2960                                      (sAdpName, iSlot, sKey));
     2961                        self.oVBox.setExtraData(sKey, '');
    29572962                except:
    29582963                    pass;
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