python - Check if IP is in list of IPNetworks using netaddr -
If I have many problems without statements I
pseudo code: < pre> ips = [... list of approximately 1000 IP] cidr_list = ['192.168.10.0/24', '10.10.10.0 / 24 for IP in IP ',' 192.168.3.0/ 24 ']: If the IP is cidr_list: Print IP
Does anyone know that this is the correct way to use IPadresser and IP networkwork from NetAdractor?
You can use the Google ipaddr package for this < pre> pipe installation ipaddr
from the command line
Comments
Post a Comment