Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 0.11.0

- Add `iosxe_crypto_engine` resource and data source for crypto engine compliance shield disable configuration
- Fix `iosxe_yang` resource payload ordering with NETCONF, [link](https://github.com/CiscoDevNet/terraform-provider-iosxe/issues/372)
- Add `ip_igmp_version` attribute to `iosxe_interface_ethernet`, `iosxe_interface_loopback`, `iosxe_interface_port_channel`, `iosxe_interface_port_channel_subinterface`, `iosxe_interface_tunnel`, and `iosxe_interface_vlan` resources and data sources
- Add `ip_default_gateway` attribute to `iosxe_system` resource and data source for default gateway configuration on non-routing devices
Expand Down
30 changes: 30 additions & 0 deletions docs/data-sources/crypto_engine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "iosxe_crypto_engine Data Source - terraform-provider-iosxe"
subcategory: "Crypto"
description: |-
This data source can read the Crypto Engine configuration.
---

# iosxe_crypto_engine (Data Source)

This data source can read the Crypto Engine configuration.

## Example Usage

```terraform
data "iosxe_crypto_engine" "example" {
}
```

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

### Optional

- `device` (String) A device name from the provider configuration.

### Read-Only

- `compliance_shield_disable` (Boolean) Allow weak crypto to be configured
- `id` (String) The path of the retrieved object.
1 change: 1 addition & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ description: |-

## 0.11.0

- Add `iosxe_crypto_engine` resource and data source for crypto engine compliance shield disable configuration
- Fix `iosxe_yang` resource payload ordering with NETCONF, [link](https://github.com/CiscoDevNet/terraform-provider-iosxe/issues/372)
- Add `ip_igmp_version` attribute to `iosxe_interface_ethernet`, `iosxe_interface_loopback`, `iosxe_interface_port_channel`, `iosxe_interface_port_channel_subinterface`, `iosxe_interface_tunnel`, and `iosxe_interface_vlan` resources and data sources
- Add `ip_default_gateway` attribute to `iosxe_system` resource and data source for default gateway configuration on non-routing devices
Expand Down
43 changes: 43 additions & 0 deletions docs/resources/crypto_engine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "iosxe_crypto_engine Resource - terraform-provider-iosxe"
subcategory: "Crypto"
description: |-
This resource can manage the Crypto Engine configuration.
---

# iosxe_crypto_engine (Resource)

This resource can manage the Crypto Engine configuration.

## Example Usage

```terraform
resource "iosxe_crypto_engine" "example" {
compliance_shield_disable = true
}
```

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

### Optional

- `compliance_shield_disable` (Boolean) Allow weak crypto to be configured
- `delete_mode` (String) Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is `all`.
- Choices: `all`, `attributes`
- `device` (String) A device name from the provider configuration.

### Read-Only

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

## Import

Import is supported using the following syntax:

The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:

```shell
terraform import iosxe_crypto_engine.example ""
```
2 changes: 2 additions & 0 deletions examples/data-sources/iosxe_crypto_engine/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
data "iosxe_crypto_engine" "example" {
}
1 change: 1 addition & 0 deletions examples/resources/iosxe_crypto_engine/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import iosxe_crypto_engine.example ""
3 changes: 3 additions & 0 deletions examples/resources/iosxe_crypto_engine/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource "iosxe_crypto_engine" "example" {
compliance_shield_disable = true
}
8 changes: 8 additions & 0 deletions gen/definitions/crypto_engine.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Crypto Engine
path: Cisco-IOS-XE-native:native/crypto/Cisco-IOS-XE-crypto:engine
doc_category: Crypto
attributes:
- yang_name: compliance/shield/disable
tf_name: compliance_shield_disable
example: true
147 changes: 147 additions & 0 deletions internal/provider/data_source_iosxe_crypto_engine.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 69 additions & 0 deletions internal/provider/data_source_iosxe_crypto_engine_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading