6 from util import mactobinary
10 def __init__(self, addr):
20 return mactobinary(self.address)
27 def address(self, value):
33 def __eq__(self, other):
34 if isinstance(other, self.__class__):
35 return self.address == other.address
36 elif hasattr(other, "bytes"):
38 return self.bytes == other.bytes
40 raise TypeError("Comparing VppMacAddress:%s"
41 "with unknown type: %s" %