Python AWS VPC CIDR available range finder with sub networks
Project description
PyVPC - CIDR free ranger resolver
Current version supports only AWS VPCs.
CIDR available range finder with sub networks
Install
pip install pyvpc
Usage
aws:
pyvpc aws [-h] --cidr-range CIDR_RANGE [--region REGION] [--all-regions]
Examples
Assuming there are two AWS VPCs with CIDRs: 10.20.0.0/16
and 10.30.0.0/16
,
executing command:
pyvpc aws --cidr-range 10.0.0.0/8
will return:
{'lower_ip': IPv4Address('10.0.0.0'), 'upper_ip': IPv4Address('10.19.255.255'), 'available': True}
{'lower_ip': IPv4Address('10.20.0.0'), 'upper_ip': IPv4Address('10.20.255.255'), 'available': False}
{'lower_ip': IPv4Address('10.21.0.0'), 'upper_ip': IPv4Address('10.29.255.255'), 'available': True}
{'lower_ip': IPv4Address('10.30.0.0'), 'upper_ip': IPv4Address('10.30.255.255'), 'available': False}
{'lower_ip': IPv4Address('10.31.0.0'), 'upper_ip': IPv4Address('10.255.255.255'), 'available': True}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyvpc-0.0.3.tar.gz
(5.0 kB
view hashes)
Built Distribution
pyvpc-0.0.3-py3-none-any.whl
(10.0 kB
view hashes)