'get mac from interface local system'

@staticmethod
def get_interface_mac(device):

    result = check_output(['ifconfig', device], stderr=STDOUT, universal_newlines=True)
    m = search('(?<=HWaddr\\s)(.*)', result)
    n = search('(?<=ether\\s)(.*)', result)
    if hasattr(m, 'group'):
        return m.group(0).strip()
    if hasattr(n, 'group'):
        return n.group(0).split()[0]
    return None
