You can reduce the 3 precedent lines in one:
return ip_addr in net_ip_list