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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -