def _ipaddress_match(ipname, host_ip):
 ip = ipaddress.ip_address(_to_unicode(ipname).rstrip())
 return (ip == host_ip)

def _ipaddress_match ( ipname , host_ip ) : ip = ipaddress . ip_address ( _to_unicode ( ipname ) . rstrip ( ) ) return ( ip == host_ip )
exact matching of ip addresses .