ipcalc
guyvelleman/ipcalc/cidrhost
Terraform Module
HCL
CIDRHOST
Terraform module cidrhost-ipcalc takes an ip address range and calculates the last available IP address in the given range.
Install
module "ipcalc" {
source = "guyvelleman/ipcalc/cidrhost"
version = "0.0.3"
}
README
terraform ipcalc Terraform module ipcalc takes an ip address range and calculates - The last available IP address in the given range. The first avilable IP address in the given range. The number of host address we can assign with bits of host address space. Usage `` module "ipcalc" { source = "guyvelleman/ipcalc/cidrhost" version = "0.0.3" cidr = 10.12.0.0/22 } ` Outputs ` first_avavilable_ip = 10.12.0.1 last_available_ip = 10.12.3.254 number_of_usable_hosts = 1022 total_number_of_hosts = 1024 ``
Inputs (2)
| Name | Type | Description | Default |
|---|---|---|---|
| cidr | string | Must be given in CIDR notation, as defined in RFC 4632 section 3.1. | required |
| prefix | number | The default IPv4 prefix. | 32 |
Outputs (4)
first_available_ip — The first available IP address in the given rangelast_available_ip — The last available IP adress in the given range.total_number_of_hosts — The number of host addresses we can assign with bits of host address space.number_of_usable_hosts — The number of host adresses we can use (because the first host address is numbered zero)Details
FrameworkTerraform Module
LanguageHCL
Version0.0.3
Cloud CIDRHOST
★ Stars0
Forks0
Total downloads780
Inputs2
Outputs4
Namespaceguyvelleman
Updated