-
Notifications
You must be signed in to change notification settings - Fork 0
/
Networking.tf
33 lines (28 loc) · 955 Bytes
/
Networking.tf
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_vrf" "vrf1" {
tenant_dn = "${aci_tenant.tenant1.id}"
name = "VRF-Prod"
}
resource "aci_bridge_domain" "bd1" {
tenant_dn = "${aci_tenant.tenant1.id}"
relation_fv_rs_ctx = aci_vrf.vrf1.id
name = "bd1"
arp_flood = "yes"
host_based_routing = "yes"
}
resource "aci_bridge_domain" "bd2" {
tenant_dn = "${aci_tenant.tenant1.id}"
relation_fv_rs_ctx = aci_vrf.vrf1.id
name = "bd2"
arp_flood = "yes"
host_based_routing = "yes"
}
resource "aci_subnet" "bd1_subnet" {
parent_dn = "${aci_bridge_domain.bd1.id}"
ip = var.bd1Subnet
scope = ["shared"]
}
resource "aci_subnet" "bd2_subnet" {
parent_dn = "${aci_bridge_domain.bd2.id}"
ip = var.bd2Subnet
scope = ["shared"]
}