def METHOD_NAME(self):
    """
    returns all MAC addresses of the SSH device.
    """
    self.ask()  # empty the shell before asking something
    macs = list()
    nextgood = False
    for token in self.ask('ifconfig | grep HWaddr').split():
        if nextgood and len(token.split(':'))==6:
            macs.append(token)
        if token == 'HWaddr':
            nextgood = True
        else:
            nextgood = False
    if macs == []:  # problem on more recent redpitaya os
        nextgood = False
        for token in self.ask('ip address').split():
            if nextgood and len(token.split(':'))==6:
                macs.append(token)
            if token == 'link/ether':
                nextgood = True
            else:
                nextgood = False
    return macs