forked from CiscoDevNet/terraform-provider-sdwan
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds transport cellular controller and transport cellular profile fea…
…tures (CiscoDevNet#338)
- Loading branch information
Showing
27 changed files
with
2,451 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
docs/data-sources/transport_cellular_controller_feature.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
``` |
4 changes: 4 additions & 0 deletions
4
examples/data-sources/sdwan_transport_cellular_controller_feature/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
4 changes: 4 additions & 0 deletions
4
examples/data-sources/sdwan_transport_cellular_profile_feature/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/resources/sdwan_transport_cellular_controller_feature/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
10 changes: 10 additions & 0 deletions
10
examples/resources/sdwan_transport_cellular_controller_feature/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/resources/sdwan_transport_cellular_profile_feature/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
12 changes: 12 additions & 0 deletions
12
examples/resources/sdwan_transport_cellular_profile_feature/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
45
gen/definitions/profile_parcels/transport_cellular_controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
Oops, something went wrong.