def modify_mac(self, macaddr=None, index=1): if macaddr is None: macaddr = random_mac() # VBoxManage prefers MAC addresses without colons. vbox_mac = macaddr.replace(':', '') self._query('mac-address', self.name, 'macaddress%d' % index, vbox_mac) return macaddr
def modify_mac(self, macaddr=None, index=1): if macaddr is None: macaddr = random_mac() # VBoxManage prefers MAC addresses without colons. vbox_mac = macaddr.replace(':', '') self._query('mac-address', self.name, 'macaddress%d' % index, vbox_mac) return macaddr
def modify_mac(self, macaddr=None, index=1): if macaddr is None: macaddr = random_mac() # VBoxManage prefers MAC addresses without colons. vbox_mac = macaddr.replace(':', '') mac = {'macaddress%d' % index: vbox_mac} self._call('modifyvm', self.name, **mac) return macaddr
def modify_mac(self, macaddr=None, index=1): if macaddr is None: macaddr = random_mac() # VBoxManage prefers MAC addresses without colons. vbox_mac = macaddr.replace(':', '') mac = {'macaddress%d' % index: vbox_mac} self._call('modifyvm', self.name, **mac) return macaddr
def modify_mac(self, macaddr=None, index=1): if macaddr is None: macaddr = random_mac() # VBoxManage prefers MAC addresses without colons. vbox_mac = macaddr.replace(":", "") mac = {"macaddress%d" % index: vbox_mac} self._call("modifyvm", self.name, **mac) return macaddr