Skip to content

Commit dd2c1a8

Browse files
committed
example for aci_epg_to_domain added
1 parent 0aacae0 commit dd2c1a8

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
resource "aci_tenant" "terraform_tenant" {
2+
name = "tf_tenant"
3+
description = "This tenant is created by terraform"
4+
}
5+
6+
resource "aci_application_profile" "terraform_ap" {
7+
tenant_dn = aci_tenant.terraform_tenant.id
8+
name = "tf_ap"
9+
}
10+
11+
resource "aci_application_epg" "terraform_epg" {
12+
application_profile_dn = aci_application_profile.terraform_ap.id
13+
name = "tf_epg"
14+
}
15+
16+
#ENSURE DOMAIN IS BOUND TO EPG
17+
resource "aci_epg_to_domain" "terraform_epg_domain" {
18+
application_epg_dn = aci_application_epg.terraform_epg.id
19+
tdn = "uni/vmmp-VMware/dom-aci_terraform_lab"
20+
vmm_allow_promiscuous = "accept"
21+
vmm_forged_transmits = "reject"
22+
vmm_mac_changes = "accept"
23+
}
24+

examples/aci_epg_to_domain/main.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#configure provider with your cisco aci credentials.
2+
provider "aci" {
3+
username = ""
4+
password = ""
5+
url = ""
6+
insecure = true
7+
}
8+
9+
# provider "aci" {
10+
# username = ""
11+
# private_key = ""
12+
# cert_name = ""
13+
# url = ""
14+
# insecure = true
15+
# }

0 commit comments

Comments
 (0)