Skip to content

Commit 4c8c738

Browse files
Add crypto engine compliance shield disable support (#382)
1 parent d983d02 commit 4c8c738

File tree

15 files changed

+1183
-0
lines changed

15 files changed

+1183
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
## 0.11.0
66

7+
- Add `iosxe_crypto_engine` resource and data source for crypto engine compliance shield disable configuration
78
- Fix `iosxe_yang` resource payload ordering with NETCONF, [link](https://github.com/CiscoDevNet/terraform-provider-iosxe/issues/372)
89
- 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
910
- Add `ip_default_gateway` attribute to `iosxe_system` resource and data source for default gateway configuration on non-routing devices

docs/data-sources/crypto_engine.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "iosxe_crypto_engine Data Source - terraform-provider-iosxe"
4+
subcategory: "Crypto"
5+
description: |-
6+
This data source can read the Crypto Engine configuration.
7+
---
8+
9+
# iosxe_crypto_engine (Data Source)
10+
11+
This data source can read the Crypto Engine configuration.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "iosxe_crypto_engine" "example" {
17+
}
18+
```
19+
20+
<!-- schema generated by tfplugindocs -->
21+
## Schema
22+
23+
### Optional
24+
25+
- `device` (String) A device name from the provider configuration.
26+
27+
### Read-Only
28+
29+
- `compliance_shield_disable` (Boolean) Allow weak crypto to be configured
30+
- `id` (String) The path of the retrieved object.

docs/guides/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ description: |-
99

1010
## 0.11.0
1111

12+
- Add `iosxe_crypto_engine` resource and data source for crypto engine compliance shield disable configuration
1213
- Fix `iosxe_yang` resource payload ordering with NETCONF, [link](https://github.com/CiscoDevNet/terraform-provider-iosxe/issues/372)
1314
- 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
1415
- Add `ip_default_gateway` attribute to `iosxe_system` resource and data source for default gateway configuration on non-routing devices

docs/resources/crypto_engine.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "iosxe_crypto_engine Resource - terraform-provider-iosxe"
4+
subcategory: "Crypto"
5+
description: |-
6+
This resource can manage the Crypto Engine configuration.
7+
---
8+
9+
# iosxe_crypto_engine (Resource)
10+
11+
This resource can manage the Crypto Engine configuration.
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "iosxe_crypto_engine" "example" {
17+
compliance_shield_disable = true
18+
}
19+
```
20+
21+
<!-- schema generated by tfplugindocs -->
22+
## Schema
23+
24+
### Optional
25+
26+
- `compliance_shield_disable` (Boolean) Allow weak crypto to be configured
27+
- `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`.
28+
- Choices: `all`, `attributes`
29+
- `device` (String) A device name from the provider configuration.
30+
31+
### Read-Only
32+
33+
- `id` (String) The path of the object.
34+
35+
## Import
36+
37+
Import is supported using the following syntax:
38+
39+
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
40+
41+
```shell
42+
terraform import iosxe_crypto_engine.example ""
43+
```
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
data "iosxe_crypto_engine" "example" {
2+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
terraform import iosxe_crypto_engine.example ""
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
resource "iosxe_crypto_engine" "example" {
2+
compliance_shield_disable = true
3+
}

gen/definitions/crypto_engine.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Crypto Engine
3+
path: Cisco-IOS-XE-native:native/crypto/Cisco-IOS-XE-crypto:engine
4+
doc_category: Crypto
5+
attributes:
6+
- yang_name: compliance/shield/disable
7+
tf_name: compliance_shield_disable
8+
example: true

internal/provider/data_source_iosxe_crypto_engine.go

Lines changed: 147 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/data_source_iosxe_crypto_engine_test.go

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)