RM6541: ip_availability script minor fixes

- fixed unused count, see commit message for details
- fixed _cidr filter so it would work in preprod -- note we still are filtering all 0's network_id and for ip_version 4 so it won't cover all of our preprod issues