def get_device_mac(device_name, namespace=None):
 return IPDevice(device_name, namespace=namespace).link.address

def get_device_mac ( device_name , namespace = None ) : return IPDevice ( device_name , namespace = namespace ) . link . address
return the mac address of the device .