Skip to content

Commit 2b7fb8d

Browse files
committed
[minor_change] Add support for link level control flow interface access policy with resource aci_link_level_control_flow_interface_policy
1 parent cb07ce9 commit 2b7fb8d

16 files changed

+2398
-0
lines changed
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_level_flow_control_interface_policy"
8+
sidebar_current: "docs-aci-data-source-aci_link_level_flow_control_interface_policy"
9+
description: |-
10+
Data source for ACI Link Level Flow Control Interface Policy
11+
---
12+
13+
# aci_link_level_flow_control_interface_policy #
14+
15+
Data source for ACI Link Level Flow Control Interface Policy
16+
17+
## API Information ##
18+
19+
* Class: [qosLlfcIfPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/qosLlfcIfPol/overview)
20+
21+
* Supported in ACI versions: 4.2(6d) to 4.2(7w), 5.1(1h) and later.
22+
23+
* Distinguished Name Format: `uni/infra/llfc-{name}`
24+
25+
## GUI Information ##
26+
27+
* Location: `Fabric -> Access Policies -> Policies -> Interface -> Link Level Flow Control`
28+
29+
## Example Usage ##
30+
31+
```hcl
32+
33+
data "aci_link_level_flow_control_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 Level Flow Control Interface Policy object.
44+
45+
### Read-Only ###
46+
47+
* `id` - (string) The distinguished name (DN) of the Link Level Flow Control Interface Policy object.
48+
* `annotation` (annotation) - (string) The annotation of the Link Level Flow Control Interface Policy object.
49+
* `description` (descr) - (string) The description of the Link Level Flow Control Interface Policy object.
50+
* `receive_mode` (llfcRcvAdminSt) - (string) The receive mode of the Link Level Flow Control Interface Policy object.
51+
* `send_mode` (llfcSendAdminSt) - (string) The send mode of the Link Level Flow Control Interface Policy object.
52+
* `name_alias` (nameAlias) - (string) The name alias of the Link Level Flow Control 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.
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
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_level_flow_control_interface_policy"
8+
sidebar_current: "docs-aci-resource-aci_link_level_flow_control_interface_policy"
9+
description: |-
10+
Manages ACI Link Level Flow Control Interface Policy
11+
---
12+
13+
# aci_link_level_flow_control_interface_policy #
14+
15+
Manages ACI Link Level Flow Control Interface Policy
16+
17+
18+
19+
## API Information ##
20+
21+
* Class: [qosLlfcIfPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/qosLlfcIfPol/overview)
22+
23+
* Supported in ACI versions: 4.2(6d) to 4.2(7w), 5.1(1h) and later.
24+
25+
* Distinguished Name Format: `uni/infra/llfc-{name}`
26+
27+
## GUI Information ##
28+
29+
* Location: `Fabric -> Access Policies -> Policies -> Interface -> Link Level Flow Control`
30+
31+
## Example Usage ##
32+
33+
The configuration snippet below creates a Link Level Flow Control Interface Policy with only required attributes.
34+
35+
```hcl
36+
37+
resource "aci_link_level_flow_control_interface_policy" "example" {
38+
name = "test_name"
39+
}
40+
41+
```
42+
The configuration snippet below shows all possible attributes of the Link Level Flow Control 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_level_flow_control_interface_policy" "full_example" {
49+
annotation = "annotation"
50+
description = "description_1"
51+
receive_mode = "on"
52+
send_mode = "on"
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 Level Flow Control Interface Policy resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_link_level_flow_control_interface_policy) folder.
74+
75+
## Schema ##
76+
77+
### Required ###
78+
79+
* `name` (name) - (string) The name of the Link Level Flow Control Interface Policy object.
80+
81+
### Read-Only ###
82+
83+
* `id` - (string) The distinguished name (DN) of the Link Level Flow Control Interface Policy object.
84+
85+
### Optional ###
86+
87+
* `annotation` (annotation) - (string) The annotation of the Link Level Flow Control Interface Policy object.
88+
- Default: `"orchestrator:terraform"`
89+
* `description` (descr) - (string) The description of the Link Level Flow Control Interface Policy object.
90+
* `receive_mode` (llfcRcvAdminSt) - (string) The receive mode of the Link Level Flow Control Interface Policy object.
91+
- Default: `"off"`
92+
- Valid Values: `"off"`, `"on"`.
93+
* `send_mode` (llfcSendAdminSt) - (string) The send mode of the Link Level Flow Control Interface Policy object.
94+
- Default: `"off"`
95+
- Valid Values: `"off"`, `"on"`.
96+
* `name_alias` (nameAlias) - (string) The name alias of the Link Level Flow Control Interface Policy object.
97+
* `owner_key` (ownerKey) - (string) The key for enabling clients to own their data for entity correlation.
98+
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object.
99+
* `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.
100+
#### Required ####
101+
102+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
103+
* `value` (value) - (string) The value of the property.
104+
* `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.
105+
#### Required ####
106+
107+
* `key` (key) - (string) The key used to uniquely identify this configuration object.
108+
* `value` (value) - (string) The value of the property.
109+
110+
## Importing
111+
112+
An existing Link Level Flow Control 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:
113+
114+
```
115+
terraform import aci_link_level_flow_control_interface_policy.example uni/infra/llfc-{name}
116+
```
117+
118+
Starting in Terraform version 1.5, an existing Link Level Flow Control Interface Policy can be imported
119+
using [import blocks](https://developer.hashicorp.com/terraform/language/import) via the following configuration:
120+
121+
```
122+
import {
123+
id = "uni/infra/llfc-{name}"
124+
to = aci_link_level_flow_control_interface_policy.example
125+
}
126+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
data "aci_link_level_flow_control_interface_policy" "example" {
3+
name = "test_name"
4+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
terraform {
2+
required_providers {
3+
aci = {
4+
source = "ciscodevnet/aci"
5+
}
6+
}
7+
}
8+
9+
provider "aci" {
10+
username = ""
11+
password = ""
12+
url = ""
13+
insecure = true
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
terraform {
2+
required_providers {
3+
aci = {
4+
source = "ciscodevnet/aci"
5+
}
6+
}
7+
}
8+
9+
provider "aci" {
10+
username = ""
11+
password = ""
12+
url = ""
13+
insecure = true
14+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
resource "aci_link_level_flow_control_interface_policy" "full_example" {
3+
annotation = "annotation"
4+
description = "description_1"
5+
receive_mode = "on"
6+
send_mode = "on"
7+
name = "test_name"
8+
name_alias = "name_alias_1"
9+
owner_key = "owner_key_1"
10+
owner_tag = "owner_tag_1"
11+
annotations = [
12+
{
13+
key = "key_0"
14+
value = "value_1"
15+
}
16+
]
17+
tags = [
18+
{
19+
key = "key_0"
20+
value = "value_1"
21+
}
22+
]
23+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
resource "aci_link_level_flow_control_interface_policy" "example" {
3+
name = "test_name"
4+
}

gen/definitions/classes.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,3 +1266,12 @@ infraRsAccBndlSubgrp:
12661266

12671267
infraAccBndlSubgrp:
12681268
resource_name: "leaf_access_bundle_policy_sub_group"
1269+
1270+
qosLlfcIfPol:
1271+
resource_name: "link_level_flow_control_interface_policy"
1272+
sub_category: "Access Policies"
1273+
ui_locations:
1274+
- "Fabric -> Access Policies -> Policies -> Interface -> Link Level Flow Control"
1275+
contained_by:
1276+
- "polUni"
1277+
rn_prepend: "infra"

gen/definitions/properties.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2895,3 +2895,14 @@ infraRsAccBndlSubgrp:
28952895
# Response Status Code: 400, Error Code: 182, Error Message: Validation failed PortBlk has a reln to AccBndlSubgrp not contained by AccBndlGrp its parent is associated to.
28962896
target_dn: ""
28972897

2898+
qosLlfcIfPol:
2899+
overwrites:
2900+
llfc_rcv_admin_st: receive_mode
2901+
llfc_send_admin_st: send_mode
2902+
documentation:
2903+
llfcRcvAdminSt: "The receive mode of the %s object."
2904+
llfcSendAdminSt: "The send mode of the %s object."
2905+
test_values:
2906+
all:
2907+
receive_mode: "on"
2908+
send_mode: "on"

0 commit comments

Comments
 (0)