def __hash__(self): return hash(( addrconv.mac.text_to_bin(self.mac_address), vrrp.ip_text_to_bin(self.primary_ip_address), self.vlan_id, self.device_name))
def __hash__(self): return hash((addrconv.mac.text_to_bin(self.mac_address), vrrp.ip_text_to_bin(self.primary_ip_address), self.vlan_id, self.dpid, self.port_no))