Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.47 KB

subnet_ip_range.md

File metadata and controls

57 lines (42 loc) · 1.47 KB
page_title subcategory description
maas_subnet_ip_range Resource - terraform-provider-maas
Provides a resource to manage MAAS network subnets IP ranges.

maas_subnet_ip_range (Resource)

Provides a resource to manage MAAS network subnets IP ranges.

Example Usage

resource "maas_subnet_ip_range" "dynamic_ip_range" {
  subnet   = maas_subnet.tf_subnet_2.id
  type     = "dynamic"
  start_ip = "10.77.77.2"
  end_ip   = "10.77.77.60"
}

resource "maas_subnet_ip_range" "reserved_ip_range" {
  subnet   = maas_subnet.tf_subnet_2.id
  type     = "reserved"
  start_ip = "10.77.77.200"
  end_ip   = "10.77.77.254"
  comment  = "Reserved for Static IPs"
}

Schema

Required

  • end_ip (String) The end IP for the new IP range (inclusive).
  • start_ip (String) The start IP for the new IP range (inclusive).
  • subnet (String) The subnet identifier (ID or CIDR) for the new IP range.
  • type (String) The IP range type. Valid options are: dynamic, reserved.

Optional

  • comment (String) A description of this range. This argument is computed if it's not set.

Read-Only

  • id (String) The ID of this resource.

Import

Import is supported using the following syntax:

# IP ranges can be imported with the start IP and the end IP. e.g.
$ terraform import maas_subnet_ip_range.dynamic_ip_range 10.77.77.2:10.77.77.60