FEATURES PRICING ABOUT DOCS LOGIN

openstack_networking_subnet_v2

Manages a V2 Neutron subnet resource within OpenStack.

Example Usage

resource "openstack_networking_network_v2" "network_1" {
  name = "tf_test_network"
  admin_state_up = "true"
}

resource "openstack_networking_subnet_v2" "subnet_1" {
  network_id = "${openstack_networking_network_v2.network_1.id}"
  cidr = "192.168.199.0/24"
}

Argument Reference

The following arguments are supported:

The allocation_pools block supports:

The host_routes block supports:

Attributes Reference

The following attributes are exported:

Import

Subnets can be imported using the id, e.g.

$ terraform import openstack_networking_subnet_v2.subnet_1 da4faf16-5546-41e4-8330-4d0002b74048

See the source of this document at Terraform.io

REQUEST A DEMO