resource "openstack_networking_network_v2" "private" { name = "terratest_network" } resource "openstack_networking_subnet_v2" "private" { name = "terratest_subnet" network_id = openstack_networking_network_v2.private.id cidr = var.subnet_cidr } resource "openstack_networking_router_v2" "private" { name = "terratest_router" external_network_id = var.gateway_id } resource "openstack_networking_router_interface_v2" "private" { router_id = openstack_networking_router_v2.private.id subnet_id = openstack_networking_subnet_v2.private.id }