-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtenant.tf
More file actions
33 lines (26 loc) · 707 Bytes
/
tenant.tf
File metadata and controls
33 lines (26 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
resource "aci_tenant" "tenant" {
name = var.aci_tenant_name
description = "Terraform Tenant"
}
resource "aci_vrf" "test-vrf" {
tenant_dn = aci_tenant.tenant.id
name = "test-vrf"
}
resource "aci_bridge_domain" "web_bd" {
tenant_dn = aci_tenant.tenant.id
name = "web_bd"
relation_fv_rs_ctx = aci_vrf.test-vrf.id
}
resource "aci_subnet" "web_subnet" {
parent_dn = aci_bridge_domain.web_bd.id
ip = "33.33.33.254/24"
}
resource "aci_bridge_domain" "app_bd" {
tenant_dn = aci_tenant.tenant.id
name = "app_bd"
relation_fv_rs_ctx = aci_vrf.test-vrf.id
}
resource "aci_subnet" "app_subnet" {
parent_dn = aci_bridge_domain.app_bd.id
ip = "66.66.66.254/24"
}