An inventory list is kept to record hostnames and ip addresses, this inventory list (inventory.xlsx) is currently maintained by automation. For every virtual machine created, the hostname and its corresponding ip address are recorded in the list, automation will update the ip address into the existing object group in the firewall. However there is a … Continue reading [python]Comparing missing ip addresses between original inventory with object group
Tag: netaddr
[python]Excluding ip addresses belonging a subnet
suppose if you need to enumerate ip addresses from a list, but want to exclude ip addresses belonging to a subnet here's a solution which you can do with netaddr module. Supposed ip_from_inventory is the list of ip addresses you have obtained from a file. This example exclude ip address that belongs to 192.168.1.0/24, and … Continue reading [python]Excluding ip addresses belonging a subnet