Verified Commit 34e50240 authored by Hugo's avatar Hugo
Browse files

add phys subnet

parent e3d35593
......@@ -4,3 +4,12 @@ resource "hcloud_network_subnet" "cloudnet" {
network_zone = var.network.zone
ip_range = var.network.cloudCidr
}
resource "hcloud_network_subnet" "physnet" {
count = var.network.vSwitchId != -1 ? 1 : 0
type = "vswitch"
network_id = var.network.id
network_zone = var.network.zone
ip_range = var.network.physCidr
vswitch_id = var.network.vSwitchId
}
......@@ -26,6 +26,8 @@ variable "network" {
id = string
zone = string
cloudCidr = string
physCidr = string
vSwitchId = number
})
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment