Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Application Priority Feature Template and QOS Policy Profile Parcel #244

Merged
merged 9 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions docs/data-sources/application_priority_feature_profile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_application_priority_feature_profile Data Source - terraform-provider-sdwan"
subcategory: "Feature Profiles"
description: |-
This data source can read the Application Priority Feature Profile .
---

# sdwan_application_priority_feature_profile (Data Source)

This data source can read the Application Priority Feature Profile .

## Example Usage

```terraform
data "sdwan_application_priority_feature_profile" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `id` (String) The id of the object

### Read-Only

- `description` (String) Description
- `name` (String) The name of the service feature profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_application_priority_qos_policy_profile_parcel Data Source - terraform-provider-sdwan"
subcategory: "Profile Parcels"
description: |-
This data source can read the Application Priority Qos Policy profile parcel.
---

# sdwan_application_priority_qos_policy_profile_parcel (Data Source)

This data source can read the Application Priority Qos Policy profile parcel.

## Example Usage

```terraform
data "sdwan_application_priority_qos_policy_profile_parcel" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `feature_profile_id` (String) Feature Profile ID
- `id` (String) The id of the profile parcel

### Read-Only

- `description` (String) The description of the profile parcel
- `name` (String) The name of the profile parcel
- `qos_schedulers` (Attributes List) qosSchedulers (see [below for nested schema](#nestedatt--qos_schedulers))
- `target_interface` (Set of String) interfaces
- `target_interface_variable` (String) Variable name
- `version` (Number) The version of the profile parcel

<a id="nestedatt--qos_schedulers"></a>
### Nested Schema for `qos_schedulers`

Read-Only:

- `bandwidth` (String) bandwidthPercent
- `drops` (String) drops
- `forwarding_class_id` (String)
- `queue` (String) queue
- `scheduling_type` (String) scheduling
40 changes: 40 additions & 0 deletions docs/resources/application_priority_feature_profile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_application_priority_feature_profile Resource - terraform-provider-sdwan"
subcategory: "Feature Profiles"
description: |-
This resource can manage a Application Priority Feature Profile .
---

# sdwan_application_priority_feature_profile (Resource)

This resource can manage a Application Priority Feature Profile .

## Example Usage

```terraform
resource "sdwan_application_priority_feature_profile" "example" {
name = "APPLICATION_PRIORITY_FP_1"
description = "My application priority feature profile 1"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `description` (String) Description
- `name` (String) The name of the service feature profile

### Read-Only

- `id` (String) The id of the object

## Import

Import is supported using the following syntax:

```shell
terraform import sdwan_application_priority_feature_profile.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
```
71 changes: 71 additions & 0 deletions docs/resources/application_priority_qos_policy_profile_parcel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_application_priority_qos_policy_profile_parcel Resource - terraform-provider-sdwan"
subcategory: "Profile Parcels"
description: |-
This resource can manage a Application Priority Qos Policy profile parcel.
Minimum SD-WAN Manager version: 20.12.0
---

# sdwan_application_priority_qos_policy_profile_parcel (Resource)

This resource can manage a Application Priority Qos Policy profile parcel.
- Minimum SD-WAN Manager version: `20.12.0`

## Example Usage

```terraform
resource "sdwan_application_priority_qos_policy_profile_parcel" "example" {
name = "Example"
description = "My Example"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
target_interface = ["{{interface_var_1}}"]
qos_schedulers = [
{
drops = "tail-drop"
queue = "0"
bandwidth = "10"
scheduling_type = "llq"
}
]
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `feature_profile_id` (String) Feature Profile ID
- `name` (String) The name of the profile parcel

### Optional

- `description` (String) The description of the profile parcel
- `qos_schedulers` (Attributes List) qosSchedulers (see [below for nested schema](#nestedatt--qos_schedulers))
- `target_interface` (Set of String) interfaces
- `target_interface_variable` (String) Variable name

### Read-Only

- `id` (String) The id of the profile parcel
- `version` (Number) The version of the profile parcel

<a id="nestedatt--qos_schedulers"></a>
### Nested Schema for `qos_schedulers`

Optional:

- `bandwidth` (String) bandwidthPercent
- `drops` (String) drops
- `forwarding_class_id` (String)
- `queue` (String) queue
- `scheduling_type` (String) scheduling

## Import

Import is supported using the following syntax:

```shell
terraform import sdwan_application_priority_qos_policy_profile_parcel.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "sdwan_application_priority_feature_profile" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
data "sdwan_application_priority_qos_policy_profile_parcel" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import sdwan_application_priority_feature_profile.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "sdwan_application_priority_feature_profile" "example" {
name = "APPLICATION_PRIORITY_FP_1"
description = "My application priority feature profile 1"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import sdwan_application_priority_qos_policy_profile_parcel.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
resource "sdwan_application_priority_qos_policy_profile_parcel" "example" {
name = "Example"
description = "My Example"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
target_interface = ["{{interface_var_1}}"]
qos_schedulers = [
{
drops = "tail-drop"
queue = "0"
bandwidth = "10"
scheduling_type = "llq"
}
]
}
18 changes: 18 additions & 0 deletions gen/definitions/generic/application_priority_feature_profile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Application Priority Feature Profile
rest_endpoint: /v1/feature-profile/sdwan/application-priority/
id_attribute: id
doc_category: Feature Profiles
test_tags: [SDWAN_2012]
attributes:
- model_name: name
response_model_name: profileName
type: String
mandatory: true
description: The name of the service feature profile
example: APPLICATION_PRIORITY_FP_1
- model_name: description
type: String
mandatory: true
description: Description
example: My application priority feature profile 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Application Priority Qos Policy
rest_endpoint: /v1/feature-profile/sdwan/application-priority/%v/qos-policy
minimum_version: 20.12.0
id_attribute: id
test_tags: [SDWAN_2012]
attributes:
- tf_name: feature_profile_id
reference: true
type: String
mandatory: true
description: Feature Profile ID
example: f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac
test_value: sdwan_application_priority_feature_profile.test.id
- model_name: interfaces
tf_name: target_interface
data_path: [target]
example: '{{interface_var_1}}'
- model_name: qosSchedulers
data_path: [qosMap]
attributes:
- model_name: refId
tf_name: forwarding_class_id
data_path: [classMapRef]
exclude_test: true
example: a509839f-33aa-492a-ab8e-6a6fe70d7d79
- model_name: drops
example: tail-drop
- model_name: queue
id: true
example: 0
- model_name: bandwidthPercent
tf_name: bandwidth
example: 10
- model_name: scheduling
tf_name: scheduling_type
example: llq

test_prerequisites: |
resource "sdwan_application_priority_feature_profile" "test" {
name = "TF_TEST"
description = "Terraform test"
}
Loading