back
terraform {
required_providers {
fortios = ">= 1.11.0"
}
}
top
module "fortios_router_bfd6" {
source = "./modules/fortios/r/fortios_router_bfd6"
# dynamic_sort_subtable - (optional) is a type of string
dynamic_sort_subtable = null
neighbor = [{
interface = null
ip6_address = null
}]
}
top
variable "dynamic_sort_subtable" {
description = "(optional)"
type = string
default = null
}
variable "neighbor" {
description = "nested block: NestingList, min items: 0, max items: 0"
type = set(object(
{
interface = string
ip6_address = string
}
))
default = []
}
top
resource "fortios_router_bfd6" "this" {
# dynamic_sort_subtable - (optional) is a type of string
dynamic_sort_subtable = var.dynamic_sort_subtable
dynamic "neighbor" {
for_each = var.neighbor
content {
# interface - (optional) is a type of string
interface = neighbor.value["interface"]
# ip6_address - (optional) is a type of string
ip6_address = neighbor.value["ip6_address"]
}
}
}
top
output "id" {
description = "returns a string"
value = fortios_router_bfd6.this.id
}
output "this" {
value = fortios_router_bfd6.this
}
top