Beispiel #1
0
 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))
Beispiel #2
0
 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))