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