Skip to content

Commit da46c89

Browse files
committed
[minor_change] Add support for link flap interface access policy with resource aci_link_flap_interface_policy
1 parent cb07ce9 commit da46c89

20 files changed

+2422
-4
lines changed

docs/data-sources/annotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ data "aci_annotation" "example_application_epg" {
6262
- [aci_management_access_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/management_access_policy) ([commPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/commPol/overview))
6363
- [aci_dhcp_relay_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/dhcp_relay_policy) ([dhcpRelayP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/dhcpRelayP/overview))
6464
- [aci_eigrp_address_family_context](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/eigrp_address_family_context) ([eigrpCtxAfPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/eigrpCtxAfPol/overview))
65+
- [aci_link_flap_interface_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/link_flap_interface_policy) ([fabricLinkFlapPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fabricLinkFlapPol/overview))
6566
- [aci_first_hop_security_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/first_hop_security_policy) ([fhsBDPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fhsBDPol/overview))
6667
- [aci_trust_control_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/trust_control_policy) ([fhsTrustCtrlPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fhsTrustCtrlPol/overview))
6768
- [aci_application_epg](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/application_epg) ([fvAEPg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvAEPg/overview))
@@ -73,7 +74,6 @@ data "aci_annotation" "example_application_epg" {
7374
- [aci_endpoint_security_group](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_security_group) ([fvESg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvESg/overview))
7475
- [aci_endpoint_tag_ip](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_tag_ip) ([fvEpIpTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpIpTag/overview))
7576
- [aci_endpoint_tag_mac](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_tag_mac) ([fvEpMacTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpMacTag/overview))
76-
- [aci_end_point_retention_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/end_point_retention_policy) ([fvEpRetPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpRetPol/overview))
7777
* `key` (key) - (string) The key used to uniquely identify this configuration object.
7878

7979
### Read-Only ###
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
# Documentation generated by "gen/generator.go"; DO NOT EDIT.
3+
# In order to regenerate this file execute `go generate` from the repository root.
4+
# More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).
5+
subcategory: "Access Policies"
6+
layout: "aci"
7+
page_title: "ACI: aci_link_flap_interface_policy"
8+
sidebar_current: "docs-aci-data-source-aci_link_flap_interface_policy"
9+
description: |-
10+
Data source for ACI Link Flap Interface Policy
11+
---
12+
13+
# aci_link_flap_interface_policy #
14+
15+
Data source for ACI Link Flap Interface Policy
16+
17+
## API Information ##
18+
19+
* Class: [fabricLinkFlapPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fabricLinkFlapPol/overview)
20+
21+
* Supported in ACI versions: 4.2(5k) and later.
22+
23+
* Distinguished Name Format: `uni/infra/linkflappol-{name}`
24+
25+
## GUI Information ##
26+
27+
* Location: `Fabric -> Access Policies -> Policies -> Interface -> Link Flap`
28+
29+
## Example Usage ##
30+
31+
```hcl
32+
33+
data "aci_link_flap_interface_policy" "example" {
34+
name = "test_name"
35+
}
36+
37+
```
38+
39+
## Schema ##
40+
41+
### Required ###
42+
43+
* `name` (name) - (string) The name of the Link Flap Interface Policy object.
44+
45+
### Read-Only ###
46+
47+
* `id` - (string) The distinguished name (DN) of the Link Flap Interface Policy object.
48+
* `annotation` (annotation) - (string) The annotation of the Link Flap Interface Policy object.
49+
* `description` (descr) - (string) The description of the Link Flap Interface Policy object.
50+
* `maximum_flaps` (linkFlapErrorMax) - (string) The maximum amount of link flaps allowed before the port goes into error disabled mode. The value must be in the range 2 - 30.
51+
* `allowed_time_for_flaps` (linkFlapErrorSeconds) - (string) The duration in seconds to reach the maximum amount of link flaps before the port goes into error disabled mode. The value must be in the range 5 - 420.
52+
* `name_alias` (nameAlias) - (string) The name alias of the Link Flap Interface Policy object.
53+
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
54+
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object.
55+
* `annotations` - (list) A list of Annotations (ACI object [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview)). This attribute is supported in ACI versions: 3.2(1l) and later.
56+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
57+
* `value` (value) - (string) The value of the property.
58+
* `tags` - (list) A list of Tags (ACI object [tagTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagTag/overview)). This attribute is supported in ACI versions: 3.2(1l) and later.
59+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
60+
* `value` (value) - (string) The value of the property.

docs/data-sources/tag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ data "aci_tag" "example_application_epg" {
6262
- [aci_management_access_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/management_access_policy) ([commPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/commPol/overview))
6363
- [aci_dhcp_relay_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/dhcp_relay_policy) ([dhcpRelayP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/dhcpRelayP/overview))
6464
- [aci_eigrp_address_family_context](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/eigrp_address_family_context) ([eigrpCtxAfPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/eigrpCtxAfPol/overview))
65+
- [aci_link_flap_interface_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/link_flap_interface_policy) ([fabricLinkFlapPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fabricLinkFlapPol/overview))
6566
- [aci_first_hop_security_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/first_hop_security_policy) ([fhsBDPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fhsBDPol/overview))
6667
- [aci_trust_control_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/trust_control_policy) ([fhsTrustCtrlPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fhsTrustCtrlPol/overview))
6768
- [aci_application_epg](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/application_epg) ([fvAEPg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvAEPg/overview))
@@ -73,7 +74,6 @@ data "aci_tag" "example_application_epg" {
7374
- [aci_endpoint_security_group](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_security_group) ([fvESg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvESg/overview))
7475
- [aci_endpoint_tag_ip](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_tag_ip) ([fvEpIpTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpIpTag/overview))
7576
- [aci_endpoint_tag_mac](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_tag_mac) ([fvEpMacTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpMacTag/overview))
76-
- [aci_end_point_retention_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/end_point_retention_policy) ([fvEpRetPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpRetPol/overview))
7777
* `key` (key) - (string) The key used to uniquely identify this configuration object.
7878

7979
### Read-Only ###

docs/resources/annotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ All examples for the Annotation resource can be found in the [examples](https://
7171
- [aci_management_access_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/management_access_policy) ([commPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/commPol/overview))
7272
- [aci_dhcp_relay_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/dhcp_relay_policy) ([dhcpRelayP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/dhcpRelayP/overview))
7373
- [aci_eigrp_address_family_context](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/eigrp_address_family_context) ([eigrpCtxAfPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/eigrpCtxAfPol/overview))
74+
- [aci_link_flap_interface_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/link_flap_interface_policy) ([fabricLinkFlapPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fabricLinkFlapPol/overview))
7475
- [aci_first_hop_security_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/first_hop_security_policy) ([fhsBDPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fhsBDPol/overview))
7576
- [aci_trust_control_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/trust_control_policy) ([fhsTrustCtrlPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fhsTrustCtrlPol/overview))
7677
- [aci_application_epg](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/application_epg) ([fvAEPg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvAEPg/overview))
@@ -82,7 +83,6 @@ All examples for the Annotation resource can be found in the [examples](https://
8283
- [aci_endpoint_security_group](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_security_group) ([fvESg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvESg/overview))
8384
- [aci_endpoint_tag_ip](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_tag_ip) ([fvEpIpTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpIpTag/overview))
8485
- [aci_endpoint_tag_mac](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_tag_mac) ([fvEpMacTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpMacTag/overview))
85-
- [aci_end_point_retention_policy](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/end_point_retention_policy) ([fvEpRetPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpRetPol/overview))
8686
* `key` (key) - (string) The key used to uniquely identify this configuration object.
8787
* `value` (value) - (string) The value of the property.
8888

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
---
2+
# Documentation generated by "gen/generator.go"; DO NOT EDIT.
3+
# In order to regenerate this file execute `go generate` from the repository root.
4+
# More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).
5+
subcategory: "Access Policies"
6+
layout: "aci"
7+
page_title: "ACI: aci_link_flap_interface_policy"
8+
sidebar_current: "docs-aci-resource-aci_link_flap_interface_policy"
9+
description: |-
10+
Manages ACI Link Flap Interface Policy
11+
---
12+
13+
# aci_link_flap_interface_policy #
14+
15+
Manages ACI Link Flap Interface Policy
16+
17+
18+
19+
## API Information ##
20+
21+
* Class: [fabricLinkFlapPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fabricLinkFlapPol/overview)
22+
23+
* Supported in ACI versions: 4.2(5k) and later.
24+
25+
* Distinguished Name Format: `uni/infra/linkflappol-{name}`
26+
27+
## GUI Information ##
28+
29+
* Location: `Fabric -> Access Policies -> Policies -> Interface -> Link Flap`
30+
31+
## Example Usage ##
32+
33+
The configuration snippet below creates a Link Flap Interface Policy with only required attributes.
34+
35+
```hcl
36+
37+
resource "aci_link_flap_interface_policy" "example" {
38+
name = "test_name"
39+
}
40+
41+
```
42+
The configuration snippet below shows all possible attributes of the Link Flap Interface Policy.
43+
44+
!> This example might not be valid configuration and is only used to show all possible attributes.
45+
46+
```hcl
47+
48+
resource "aci_link_flap_interface_policy" "full_example" {
49+
annotation = "annotation"
50+
description = "description_1"
51+
maximum_flaps = "10"
52+
allowed_time_for_flaps = "350"
53+
name = "test_name"
54+
name_alias = "name_alias_1"
55+
owner_key = "owner_key_1"
56+
owner_tag = "owner_tag_1"
57+
annotations = [
58+
{
59+
key = "key_0"
60+
value = "value_1"
61+
}
62+
]
63+
tags = [
64+
{
65+
key = "key_0"
66+
value = "value_1"
67+
}
68+
]
69+
}
70+
71+
```
72+
73+
All examples for the Link Flap Interface Policy resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_link_flap_interface_policy) folder.
74+
75+
## Schema ##
76+
77+
### Required ###
78+
79+
* `name` (name) - (string) The name of the Link Flap Interface Policy object.
80+
81+
### Read-Only ###
82+
83+
* `id` - (string) The distinguished name (DN) of the Link Flap Interface Policy object.
84+
85+
### Optional ###
86+
87+
* `annotation` (annotation) - (string) The annotation of the Link Flap Interface Policy object.
88+
- Default: `"orchestrator:terraform"`
89+
* `description` (descr) - (string) The description of the Link Flap Interface Policy object.
90+
* `maximum_flaps` (linkFlapErrorMax) - (string) The maximum amount of link flaps allowed before the port goes into error disabled mode. The value must be in the range 2 - 30.
91+
- Default: `"30"`
92+
* `allowed_time_for_flaps` (linkFlapErrorSeconds) - (string) The duration in seconds to reach the maximum amount of link flaps before the port goes into error disabled mode. The value must be in the range 5 - 420.
93+
- Default: `"420"`
94+
* `name_alias` (nameAlias) - (string) The name alias of the Link Flap Interface Policy object.
95+
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
96+
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object.
97+
* `annotations` - (list) A list of Annotations (ACI object [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview)). Annotations can also be configured using a separate [aci_annotation](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/annotation) resource. This attribute is supported in ACI versions: 3.2(1l) and later.
98+
#### Required ####
99+
100+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
101+
* `value` (value) - (string) The value of the property.
102+
* `tags` - (list) A list of Tags (ACI object [tagTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagTag/overview)). Tags can also be configured using a separate [aci_tag](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/tag) resource. This attribute is supported in ACI versions: 3.2(1l) and later.
103+
#### Required ####
104+
105+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
106+
* `value` (value) - (string) The value of the property.
107+
108+
## Importing
109+
110+
An existing Link Flap Interface Policy can be [imported](https://www.terraform.io/docs/import/index.html) into this resource with its distinguished name (DN), via the following command:
111+
112+
```
113+
terraform import aci_link_flap_interface_policy.example uni/infra/linkflappol-{name}
114+
```
115+
116+
Starting in Terraform version 1.5, an existing Link Flap Interface Policy can be imported
117+
using [import blocks](https://developer.hashicorp.com/terraform/language/import) via the following configuration:
118+
119+
```
120+
import {
121+
id = "uni/infra/linkflappol-{name}"
122+
to = aci_link_flap_interface_policy.example
123+
}
124+
```

0 commit comments

Comments
 (0)