Skip to content

Commit

Permalink
Adds transport cellular controller and transport cellular profile fea…
Browse files Browse the repository at this point in the history
…tures (CiscoDevNet#338)
  • Loading branch information
seconroy authored Nov 21, 2024
1 parent 220696f commit b72d75f
Show file tree
Hide file tree
Showing 27 changed files with 2,451 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## 0.5.1 (unreleased)

- BREAKING CHANGE: Adds `gateway` attribute to `sdwan_transport_wan_vpn_feature` resource
- Add `sdwan_transport_cellular_controller_feature` resource and data source
- Add `sdwan_transport_cellular_profile_feature` resource and data source

## 0.5.0

Expand Down
44 changes: 44 additions & 0 deletions docs/data-sources/transport_cellular_controller_feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_transport_cellular_controller_feature Data Source - terraform-provider-sdwan"
subcategory: "Features"
description: |-
This data source can read the Transport Cellular Controller Feature.
---

# sdwan_transport_cellular_controller_feature (Data Source)

This data source can read the Transport Cellular Controller Feature.

## Example Usage

```terraform
data "sdwan_transport_cellular_controller_feature" "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 Feature

### Read-Only

- `cellular_id` (String) Cellular ID
- `cellular_id_variable` (String) Variable name
- `description` (String) The description of the Feature
- `firmware_auto_sim` (Boolean) Enable/Disable Firmware Auto Sim
- `firmware_auto_sim_variable` (String) Variable name
- `name` (String) The name of the Feature
- `primary_sim_slot` (Number) Set primary SIM slot
- `primary_sim_slot_variable` (String) Variable name
- `sim_failover_retries` (Number) Set SIM failover retries
- `sim_failover_retries_variable` (String) Variable name
- `sim_failover_timeout` (Number) Set SIM failover timeout in minutes
- `sim_failover_timeout_variable` (String) Variable name
- `version` (Number) The version of the Feature
49 changes: 49 additions & 0 deletions docs/data-sources/transport_cellular_profile_feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_transport_cellular_profile_feature Data Source - terraform-provider-sdwan"
subcategory: "Features"
description: |-
This data source can read the Transport Cellular Profile Feature.
---

# sdwan_transport_cellular_profile_feature (Data Source)

This data source can read the Transport Cellular Profile Feature.

## Example Usage

```terraform
data "sdwan_transport_cellular_profile_feature" "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 Feature

### Read-Only

- `access_point_name` (String) Set access point name
- `access_point_name_variable` (String) Variable name
- `authentication_type` (String) Set authentication type
- `authentication_type_variable` (String) Variable name
- `description` (String) The description of the Feature
- `name` (String) The name of the Feature
- `no_authentication` (String) No Authentication
- `no_overwrite` (Boolean) No Overwrite
- `no_overwrite_variable` (String) Variable name
- `packet_data_network_type` (String) Set packet data network type
- `packet_data_network_type_variable` (String) Variable name
- `profile_id` (Number) Set Profile ID
- `profile_id_variable` (String) Variable name
- `profile_password` (String) Set the profile password
- `profile_password_variable` (String) Variable name
- `profile_username` (String) Set the profile username
- `profile_username_variable` (String) Variable name
- `version` (Number) The version of the Feature
2 changes: 2 additions & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ description: |-
## 0.5.1 (unreleased)

- BREAKING CHANGE: Adds `gateway` attribute to `sdwan_transport_wan_vpn_feature` resource
- Add `sdwan_transport_cellular_controller_feature` resource and data source
- Add `sdwan_transport_cellular_profile_feature` resource and data source

## 0.5.0

Expand Down
68 changes: 68 additions & 0 deletions docs/resources/transport_cellular_controller_feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_transport_cellular_controller_feature Resource - terraform-provider-sdwan"
subcategory: "Features"
description: |-
This resource can manage a Transport Cellular Controller Feature.
Minimum SD-WAN Manager version: 20.12.0
---

# sdwan_transport_cellular_controller_feature (Resource)

This resource can manage a Transport Cellular Controller Feature.
- Minimum SD-WAN Manager version: `20.12.0`

## Example Usage

```terraform
resource "sdwan_transport_cellular_controller_feature" "example" {
name = "Example"
description = "My Example"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
cellular_id = "0/3/0"
primary_sim_slot = 0
sim_failover_retries = 5
sim_failover_timeout = 3
firmware_auto_sim = true
}
```

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

### Required

- `cellular_id` (String) Cellular ID
- `feature_profile_id` (String) Feature Profile ID
- `name` (String) The name of the Feature

### Optional

- `cellular_id_variable` (String) Variable name
- `description` (String) The description of the Feature
- `firmware_auto_sim` (Boolean) Enable/Disable Firmware Auto Sim
- Default value: `true`
- `firmware_auto_sim_variable` (String) Variable name
- `primary_sim_slot` (Number) Set primary SIM slot
- Range: `0`-`1`
- `primary_sim_slot_variable` (String) Variable name
- `sim_failover_retries` (Number) Set SIM failover retries
- Range: `0`-`65535`
- `sim_failover_retries_variable` (String) Variable name
- `sim_failover_timeout` (Number) Set SIM failover timeout in minutes
- Range: `3`-`7`
- `sim_failover_timeout_variable` (String) Variable name

### Read-Only

- `id` (String) The id of the Feature
- `version` (Number) The version of the Feature

## Import

Import is supported using the following syntax:

```shell
# Expected import identifier with the format: "transport_cellular_controller_feature_id,feature_profile_id"
terraform import sdwan_transport_cellular_controller_feature.example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
```
75 changes: 75 additions & 0 deletions docs/resources/transport_cellular_profile_feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_transport_cellular_profile_feature Resource - terraform-provider-sdwan"
subcategory: "Features"
description: |-
This resource can manage a Transport Cellular Profile Feature.
Minimum SD-WAN Manager version: 20.12.0
---

# sdwan_transport_cellular_profile_feature (Resource)

This resource can manage a Transport Cellular Profile Feature.
- Minimum SD-WAN Manager version: `20.12.0`

## Example Usage

```terraform
resource "sdwan_transport_cellular_profile_feature" "example" {
name = "Example"
description = "My Example"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
profile_id = 1
access_point_name = "apn1"
authentication_type = "pap"
profile_username = "example"
profile_password = "example123!"
packet_data_network_type = "ipv4"
no_overwrite = false
}
```

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

### Required

- `access_point_name` (String) Set access point name
- `feature_profile_id` (String) Feature Profile ID
- `name` (String) The name of the Feature
- `profile_id` (Number) Set Profile ID
- Range: `1`-`16`

### Optional

- `access_point_name_variable` (String) Variable name
- `authentication_type` (String) Set authentication type
- Choices: `pap`, `chap`, `pap_chap`
- `authentication_type_variable` (String) Variable name
- `description` (String) The description of the Feature
- `no_authentication` (String) No Authentication
- `no_overwrite` (Boolean) No Overwrite
- `no_overwrite_variable` (String) Variable name
- `packet_data_network_type` (String) Set packet data network type
- Choices: `ipv4`, `ipv4v6`, `ipv6`
- Default value: `ipv4`
- `packet_data_network_type_variable` (String) Variable name
- `profile_id_variable` (String) Variable name
- `profile_password` (String) Set the profile password
- `profile_password_variable` (String) Variable name
- `profile_username` (String) Set the profile username
- `profile_username_variable` (String) Variable name

### Read-Only

- `id` (String) The id of the Feature
- `version` (Number) The version of the Feature

## Import

Import is supported using the following syntax:

```shell
# Expected import identifier with the format: "transport_cellular_profile_feature_id,feature_profile_id"
terraform import sdwan_transport_cellular_profile_feature.example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
data "sdwan_transport_cellular_controller_feature" "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,4 @@
data "sdwan_transport_cellular_profile_feature" "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,3 @@

# Expected import identifier with the format: "transport_cellular_controller_feature_id,feature_profile_id"
terraform import sdwan_transport_cellular_controller_feature.example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
resource "sdwan_transport_cellular_controller_feature" "example" {
name = "Example"
description = "My Example"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
cellular_id = "0/3/0"
primary_sim_slot = 0
sim_failover_retries = 5
sim_failover_timeout = 3
firmware_auto_sim = true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# Expected import identifier with the format: "transport_cellular_profile_feature_id,feature_profile_id"
terraform import sdwan_transport_cellular_profile_feature.example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
resource "sdwan_transport_cellular_profile_feature" "example" {
name = "Example"
description = "My Example"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
profile_id = 1
access_point_name = "apn1"
authentication_type = "pap"
profile_username = "example"
profile_password = "example123!"
packet_data_network_type = "ipv4"
no_overwrite = false
}
45 changes: 45 additions & 0 deletions gen/definitions/profile_parcels/transport_cellular_controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: Transport Cellular Controller
rest_endpoint: /v1/feature-profile/sdwan/transport/%v/cellular-controller
minimum_version: 20.12.0
test_tags: [SDWAN_2012]
parcel_type: feature
skip_minimum_test: true
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_transport_feature_profile.test.id
- model_name: configType
type: String
example: non-eSim
- model_name: id
tf_name: cellular_id
data_path: [controllerConfig]
mandatory: true
example: 0/3/0
- model_name: slot
tf_name: primary_sim_slot
data_path: [controllerConfig]
example: 0
- model_name: maxRetry
tf_name: sim_failover_retries
data_path: [controllerConfig]
example: 5
- model_name: failovertimer
tf_name: sim_failover_timeout
data_path: [controllerConfig]
example: 3
- model_name: autoSim
tf_name: firmware_auto_sim
data_path: [controllerConfig]
example: true

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

0 comments on commit b72d75f

Please sign in to comment.