Skip to content

Commit f305774

Browse files
shrsrlhercot
andauthored
Changes to docs, examples and names of ESG files (#717)
Co-authored-by: Lionel Hercot <[email protected]>
1 parent 12aa6af commit f305774

8 files changed

+16
-53
lines changed

aci/data_source_aci_fvepselector.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,9 @@ func dataSourceAciEndpointSecurityGroupSelector() *schema.Resource {
1818
Type: schema.TypeString,
1919
Required: true,
2020
},
21-
"annotation": {
22-
Type: schema.TypeString,
23-
Optional: true,
24-
Computed: true,
25-
},
2621
"match_expression": {
2722
Type: schema.TypeString,
28-
Optional: true,
29-
Computed: true,
23+
Required: true,
3024
},
3125
"name": {
3226
Type: schema.TypeString,

aci/resource_aci_fvesg.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ func resourceAciEndpointSecurityGroup() *schema.Resource {
3232
Required: true,
3333
ForceNew: true,
3434
},
35-
"flood_on_encap": {
36-
Type: schema.TypeString,
37-
Optional: true,
38-
Computed: true,
39-
ValidateFunc: validation.StringInSlice([]string{
40-
"disabled",
41-
"enabled",
42-
}, false),
43-
},
4435
"match_t": {
4536
Type: schema.TypeString,
4637
Optional: true,
@@ -75,21 +66,6 @@ func resourceAciEndpointSecurityGroup() *schema.Resource {
7566
"include",
7667
}, false),
7768
},
78-
"prio": {
79-
Type: schema.TypeString,
80-
Optional: true,
81-
Computed: true,
82-
ValidateFunc: validation.StringInSlice([]string{
83-
"level1",
84-
"level2",
85-
"level3",
86-
"level4",
87-
"level5",
88-
"level6",
89-
"unspecified",
90-
}, false),
91-
},
92-
9369
"relation_fv_rs_cons": {
9470
Type: schema.TypeSet,
9571
Optional: true,

examples/aci_endpoint_security_group/aci_endpoint_security_group.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ resource "aci_application_profile" "terraform_ap" {
77
resource "aci_endpoint_security_group" "terraform_esg" {
88
application_profile_dn = aci_application_profile.terraform_ap.id
99
name = "tf_esg"
10+
relation_fv_rs_scope = aci_vrf.vrf.id
1011
relation_fv_rs_prov = [aci_contract.rs_prov_contract.id]
1112
relation_fv_rs_cons = [aci_contract.rs_cons_contract.id]
1213
relation_fv_rs_intra_epg = [aci_contract.intra_epg_contract.id]
1314
relation_fv_rs_cons_if = [aci_contract.exported_contract.id]
1415
relation_fv_rs_cust_qos_pol = aci_rest.rest_qos_custom_pol.id
15-
relation_fv_rs_scope = aci_vrf.vrf.id
1616
relation_fv_rs_prot_by = [aci_rest.rest_taboo_con.id]
1717
}
1818

@@ -21,11 +21,9 @@ resource "aci_endpoint_security_group" "terraform_inherit_esg" {
2121
application_profile_dn = aci_application_profile.terraform_ap.id
2222
name = "tf_inherit_esg"
2323
description = "create relation sec_inherited"
24-
flood_on_encap = "disabled"
2524
match_t = "None"
2625
pc_enf_pref = "unenforced"
2726
pref_gr_memb = "exclude"
28-
prio = "unspecified"
2927
relation_fv_rs_sec_inherited = [aci_endpoint_security_group.terraform_esg.id]
3028
}
3129

website/aci.erb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@
154154
<li<%= sidebar_current("docs-aci-data-source-end_point_retention_policy") %>>
155155
<a href="/docs/providers/aci/d/end_point_retention_policy.html">aci_end_point_retention_policy</a>
156156
</li>
157-
<li<%= sidebar_current("docs-aci-data-source-end_point_security_group") %>>
158-
<a href="/docs/providers/aci/d/end_point_security_group.html">aci_end_point_security_group</a>
157+
<li<%= sidebar_current("docs-aci-data-source-endpoint_security_group") %>>
158+
<a href="/docs/providers/aci/d/endpoint_security_group.html">aci_endpoint_security_group</a>
159159
</li>
160160
<li<%= sidebar_current("docs-aci-data-endpoint_security_group_epg_selector") %>>
161161
<a href="/docs/providers/aci/d/endpoint_security_group_epg_selector.html">aci_endpoint_security_group_epg_selector</a>
162162
</li>
163-
<li<%= sidebar_current("docs-aci-data-source-end_point_security_group_selector") %>>
164-
<a href="/docs/providers/aci/d/end_point_security_group_selector.html">aci_end_point_security_group_selector</a>
163+
<li<%= sidebar_current("docs-aci-data-source-endpoint_security_group_selector") %>>
164+
<a href="/docs/providers/aci/d/endpoint_security_group_selector.html">aci_endpoint_security_group_selector</a>
165165
</li>
166166
<li<%= sidebar_current("docs-aci-data-source-epg_to_contract") %>>
167167
<a href="/docs/providers/aci/d/epg_to_contract.html">aci_epg_to_contract</a>
@@ -596,14 +596,14 @@
596596
<li<%= sidebar_current("docs-aci-resource-end_point_retention_policy") %>>
597597
<a href="/docs/providers/aci/r/end_point_retention_policy.html">aci_end_point_retention_policy</a>
598598
</li>
599-
<li<%= sidebar_current("docs-aci-resource-end_point_security_group") %>>
600-
<a href="/docs/providers/aci/r/end_point_security_group.html">aci_end_point_security_group</a>
599+
<li<%= sidebar_current("docs-aci-resource-endpoint_security_group") %>>
600+
<a href="/docs/providers/aci/r/endpoint_security_group.html">aci_endpoint_security_group</a>
601601
</li>
602602
<li<%= sidebar_current("docs-aci-resource-endpoint_security_group_epg_selector") %>>
603603
<a href="/docs/providers/aci/r/endpoint_security_group_epg_selector.html">aci_endpoint_security_group_epg_selector</a>
604604
</li>
605-
<li<%= sidebar_current("docs-aci-resource-end_point_security_group_selector") %>>
606-
<a href="/docs/providers/aci/r/end_point_security_group_selector.html">aci_end_point_security_group_selector</a>
605+
<li<%= sidebar_current("docs-aci-resource-endpoint_security_group_selector") %>>
606+
<a href="/docs/providers/aci/r/endpoint_security_group_selector.html">aci_endpoint_security_group_selector</a>
607607
</li>
608608
<li<%= sidebar_current("docs-aci-resource-epg_to_contract") %>>
609609
<a href="/docs/providers/aci/r/epg_to_contract.html">aci_epg_to_contract</a>
File renamed without changes.

website/docs/d/end_point_security_group_selector.html.markdown renamed to website/docs/d/endpoint_security_group_selector.html.markdown

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ data "aci_endpoint_security_group_selector" "example" {
3131
## Argument Reference ##
3232

3333
* `endpoint_security_group_dn` - (Required) Distinguished name of parent Endpoint Security Group object.
34-
* `match_expression` - (Optional) Expression used to define matching tags.
34+
* `match_expression` - (Required) Expression used to define matching tags.
3535

3636
## Attribute Reference ##
3737

3838
* `id` - Attribute id set to the Dn of the Endpoint Security Group Selector.
39-
* `name` - (Optional) Name of object Endpoint Security Group Selector.
4039
* `annotation` - (Optional) Annotation of object Endpoint Security Group Selector.
4140
* `description` - (Optional) Description of object Endpoint Security Group Selector.
41+
* `name` - (Optional) Name of object Endpoint Security Group Selector.
4242
* `name_alias` - (Optional) Name Alias of object Endpoint Security Group Selector.
43-
* `match_expression` - (Optional) Expression used to define matching tagTags.

website/docs/r/end_point_security_group.html.markdown renamed to website/docs/r/endpoint_security_group.html.markdown

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ resource "aci_endpoint_security_group" "example" {
2828
description = "from terraform"
2929
annotation = "orchestrator:terraform"
3030
name_alias = "example"
31-
flood_on_encap = "disabled"
3231
match_t = "AtleastOne"
3332
pc_enf_pref = "unenforced"
3433
pref_gr_memb = "exclude"
35-
prio = "unspecified"
34+
35+
relation_fv_rs_scope = aci_vrf.example.id
3636
3737
relation_fv_rs_cons {
3838
prio = "unspecified"
@@ -54,8 +54,6 @@ resource "aci_endpoint_security_group" "example" {
5454
target_dn = aci_contract.example.id
5555
}
5656
57-
relation_fv_rs_scope = aci_vrf.example.id
58-
5957
relation_fv_rs_sec_inherited = [aci_application_epg.example.id]
6058
}
6159
```
@@ -67,13 +65,13 @@ resource "aci_endpoint_security_group" "example" {
6765
- `annotation` - (Optional) Annotation of object Endpoint Security Group.
6866
- `description` - (Optional) Description of object Endpoint Security Group.
6967
- `name_alias` - (Optional) Name alias of object Endpoint Security Group.
70-
- `flood_on_encap` - (Optional) Handles L2 Multicast/Broadcast and Link-Layer traffic at EPG level. It represents Control at EPG level and decides if the traffic L2 Multicast/Broadcast and Link Local Layer should be flooded only on ENCAP, or based on bridge-domain settings. Allowed values are "disabled", "enabled", and default value is "disabled". Type: String.
7168
- `match_t` - (Optional) Provider Label Match Criteria. Allowed values are "All", "AtleastOne", "AtmostOne", "None", and default value is "AtleastOne". Type: String.
7269
- `pc_enf_pref` - (Optional) The preferred policy control enforcement. Allowed values are "enforced", "unenforced", and default value is "unenforced". Type: String.
7370
- `pref_gr_memb` - (Optional) Preferred Group Member parameter is used to determine
7471
if EPg is part of a group that allows
7572
a contract for communication. Allowed values are "exclude", "include", and default value is "exclude". Type: String.
76-
- `prio` - (Optional) QoS priority class identifier. Allowed values are "level1", "level2", "level3", "level4", "level5", "level6", "unspecified", and default value is "unspecified". Type: String.
73+
74+
- `relation_fv_rs_scope` - (Required) Represents the relation to a VRF (class fvCtx). Type: String.
7775

7876
- `relation_fv_rs_cons` - (Optional) A block representing the relation to a Contract Consumer (class vzBrCP). The Consumer contract profile information. Type: Block.
7977

@@ -95,8 +93,6 @@ resource "aci_endpoint_security_group" "example" {
9593
- `prio` - (Optional) The system class determines the quality of service and priority for the consumer traffic. Allowed values are "level1", "level2", "level3", "level4", "level5", "level6", "unspecified", and default value is "unspecified". Type: String.
9694
- `target_dn` - (Required) The distinguished name of the target contract. Type: String.
9795

98-
- `relation_fv_rs_scope` - (Optional) Represents the relation to a Private Network (class fvCtx). Type: String.
99-
10096
- `relation_fv_rs_sec_inherited` - (Optional) Represents the relation to a Security inheritance (class fvEPg). It represents that the EPg is inheriting security configuration from another EPg. Type: List.
10197

10298
## Importing
File renamed without changes.

0 commit comments

Comments
 (0)