Is this the right way to check if ip_addr is already present in net_id ?
I couldn't find a better way.