2017-12-05 20:48:47 +08:00
|
|
|
output "router_id" {
|
2020-04-06 17:41:46 +08:00
|
|
|
value = "%{if var.use_neutron == 1} ${var.router_id == null ? element(concat(openstack_networking_router_v2.k8s.*.id, [""]), 0) : var.router_id} %{else} %{endif}"
|
2018-08-21 19:21:25 +08:00
|
|
|
}
|
|
|
|
|
2022-05-03 23:51:56 +08:00
|
|
|
output "network_id" {
|
|
|
|
value = element(concat(openstack_networking_network_v2.k8s.*.id, [""]),0)
|
|
|
|
}
|
|
|
|
|
2018-08-21 19:21:25 +08:00
|
|
|
output "router_internal_port_id" {
|
2020-06-05 15:05:43 +08:00
|
|
|
value = element(concat(openstack_networking_router_interface_v2.k8s.*.id, [""]), 0)
|
2017-12-05 20:48:47 +08:00
|
|
|
}
|
|
|
|
|
2018-03-27 16:13:36 +08:00
|
|
|
output "subnet_id" {
|
2020-06-05 15:05:43 +08:00
|
|
|
value = element(concat(openstack_networking_subnet_v2.k8s.*.id, [""]), 0)
|
2017-12-05 20:48:47 +08:00
|
|
|
}
|