'Set random MAC address for the interface
:param self: A NetworkManager object
:param interface_name: Name of an interface
:type self: NetworkManager
:type interface_name: str
:return: None
:rtype: None
.. note: This method will set the interface to managed mode.
Also the first 3 octets are always 00:00:00 by default'

def set_interface_mac_random(self, interface_name):

    new_mac_address = generate_random_address()
    self._name_to_object[interface_name].mac_address = new_mac_address
    self.set_interface_mac(interface_name, new_mac_address)
