6 from util import mactobinary
10 def __init__(self, addr):
20 return mactobinary(self.address)
24 return self.addr.address
29 def __eq__(self, other):
30 if isinstance(other, self.__class__):
31 return self.address == other.addres
32 elif hasattr(other, "bytes"):
34 return self.bytes == other.bytes
36 raise Exception("Comparing VppMacAddress:%s"
37 "with unknown type: %s" %