def get_device_mac(self): try: return ifaddresses(self.interface)[AF_LINK][0]['addr'] except KeyError: return "00:00:00:00:00:00"