def testValid(self): mac = b'\xaa\x12\x42\xff\xa5\xd0' self.assertEqual(client.mac(mac), 'aa:12:42:ff:a5:d0')
def testEmpty(self): self.assertEqual(client.mac(b''), '')
def __init__(self, iface: jobs_pb2.Interface) -> None: self.name = iface.ifname self.addresses = iface.addresses self.mac = client.mac(iface.mac_address)
def __init__(self, iface): self.name = iface.ifname self.addresses = iface.addresses self.mac = client.mac(iface.mac_address)
def convert_to_pretty_str(packed: bytes) -> Text: if pd.isna(packed): return np.nan return client_textify.mac(packed)