'Returns the vifs record for the mac_address.'

def get_vif_by_mac_address(self, context, mac_address):

    vif = objects.VirtualInterface.get_by_address(context, mac_address)
    if (vif.network_id is not None):
        network = self._get_network_by_id(context, vif.network_id)
        vif.net_uuid = network.uuid
    return vif
