File tree Expand file tree Collapse file tree 4 files changed +41
-9
lines changed
examples/aci_epg_to_static_path Expand file tree Collapse file tree 4 files changed +41
-9
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,13 @@ func resourceAciStaticPath() *schema.Resource {
2727 "application_epg_dn" : & schema.Schema {
2828 Type : schema .TypeString ,
2929 Required : true ,
30+ ForceNew : true ,
3031 },
3132
3233 "tdn" : & schema.Schema {
3334 Type : schema .TypeString ,
3435 Required : true ,
36+ ForceNew : true ,
3537 },
3638
3739 "encap" : & schema.Schema {
Original file line number Diff line number Diff line change 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+ resource "aci_epg_to_static_path" "example" {
17+ application_epg_dn = aci_application_epg. terraform_epg . id
18+ tdn = " topology/pod-1/paths-129/pathep-[eth1/5]"
19+ encap = " vlan-100"
20+ mode = " regular"
21+ }
Original file line number Diff line number Diff line change 1+ provider "aci" {
2+ username = " "
3+ password = " "
4+ url = " "
5+ insecure = true
6+ }
7+
8+ # provider "aci" {
9+ # username = ""
10+ # private_key = ""
11+ # cert_name = ""
12+ # url = ""
13+ # insecure = true
14+ # }
Original file line number Diff line number Diff line change @@ -13,20 +13,15 @@ Manages ACI Static Path
1313
1414``` hcl
1515resource "aci_epg_to_static_path" "example" {
16-
1716 application_epg_dn = "${aci_application_epg.example.id}"
18-
19- tDn = "example"
20- annotation = "example"
21- encap = "example"
22- instr_imedcy = "example"
23- mode = "example"
24- primary_encap = "example"
17+ tdn = "topology/pod-1/paths-129/pathep-[eth1/3]"
18+ encap = "vlan-1000"
19+ mode = "regular"
2520}
2621```
2722## Argument Reference ##
2823* ` application_epg_dn ` - (Required) Distinguished name of parent ApplicationEPG object.
29- * ` tDn ` - (Required) tDn of Object static_path.
24+ * ` tdn ` - (Required) tDn of Object static_path.
3025* ` annotation ` - (Optional) annotation for object static_path.
3126* ` encap ` - (Optional) encapsulation
3227* ` instr_imedcy ` - (Optional) immediacy.
You can’t perform that action at this time.
0 commit comments