Tool for listing IP addresses
get-ips is small tool written in Python3 to list network interface settings.
git clone https://github.com/petervago/get-ips
chmod +x /src/get-ips
- argparse - processign command line arguments
- argcomplete - command line arguments
- ipaddress - network address tweaking
- pytest - unti testing
- pdoc3 - for generating html documentation
Get help on usage
... cd /src/ ./get-ips.py -h ...
Get version
... ./get-ips.py -v ...
Get current IPv4 addresses, printed to stdout, seaparetd by newlines
... ./get-ips.py ...
Get current IPv4 addresses with netmask
... ./get-ips.py --with-prefix ...
Get overlapping interfaces (Multiple IPs in the same subnet are allowed)
... ./get-ips.py --overlapping ...
Testing with testfiles (-T option). Testfiles can containd any text in the format of 'ip addr show' output format.
... ./get-ips.py --overlapping -T ../tests/reading_interfaces/examples/05_ip_add_overlaps.txt -dnfo ...