Changeset 65729 in vbox
- Timestamp:
- Feb 10, 2017 1:07:38 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 113443
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r65683 r65729 1517 1517 except: 1518 1518 reporter.errorXcpt('failed to determine the host IP for "%s".' % (sHostName,)) 1519 abHostIP = array.array('B', (0x80, 0x86, 0x00, 0x00)).tostring()1519 return False 1520 1520 sDefaultMac = '%02X%02X%02X%02X%02X%02X' \ 1521 1521 % (0x02, ord(abHostIP[0]), ord(abHostIP[1]), ord(abHostIP[2]), ord(abHostIP[3]), iNic) … … 1524 1524 # Get the NIC object and try set it address. 1525 1525 try: 1526 oNic = self.o.machine.getNetworkAdapter(iNic) ;1527 except: 1528 reporter.errorXcpt('getNetworkAdapter(%s) failed for "%s"' % (iNic, self.sName)) ;1529 return False ;1530 1531 try: 1532 oNic.MACAddress = sMacAddr ;1526 oNic = self.o.machine.getNetworkAdapter(iNic) 1527 except: 1528 reporter.errorXcpt('getNetworkAdapter(%s) failed for "%s"' % (iNic, self.sName)) 1529 return False 1530 1531 try: 1532 oNic.MACAddress = sMacAddr 1533 1533 except: 1534 1534 reporter.errorXcpt('failed to set the MAC address on slot %s to "%s" for VM "%s"' \ 1535 % (iNic, sMacAddr, self.sName)) ;1536 return False ;1537 1538 reporter.log('set MAC address on slot %s to %s for VM "%s"' % (iNic, sMacAddr, self.sName)) ;1539 return True ;1535 % (iNic, sMacAddr, self.sName)) 1536 return False 1537 1538 reporter.log('set MAC address on slot %s to %s for VM "%s"' % (iNic, sMacAddr, self.sName)) 1539 return True 1540 1540 1541 1541 def setRamSize(self, cMB):
Note:
See TracChangeset
for help on using the changeset viewer.