Skip to content

Commit 01309af

Browse files
committed
fix issue and provide example for aci_epg_to_static_path
1 parent c332419 commit 01309af

File tree

4 files changed

+41
-9
lines changed

4 files changed

+41
-9
lines changed

aci/resource_aci_fvrspathatt.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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{
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
# }

website/docs/r/fvrspathatt.html.markdown

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,15 @@ Manages ACI Static Path
1313

1414
```hcl
1515
resource "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.

0 commit comments

Comments
 (0)