'another functions for get mac adreess'

@staticmethod
def getHwAddr(ifname):

    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    info = ioctl(s.fileno(), 35111, pack('256s', ifname[:15]))
    return ':'.join([('%02x' % ord(char)) for char in info[18:24]])
