Skip to content

Commit 2f45ebf

Browse files
committed
feat: add crypto engine compliance shield disable support
- Add iosxe_crypto_engine resource and data source - Support for disabling crypto engine compliance shield - Tested on Cat8K 17.15, Cat9K 17.15, and Cat8K 17.12 - Full RESTCONF support across all tested platforms
1 parent 6f56e6e commit 2f45ebf

File tree

15 files changed

+1258
-0
lines changed

15 files changed

+1258
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.11.0
2+
3+
- Add `iosxe_crypto_engine` resource and data source for crypto engine compliance shield disable configuration
4+
15
## 0.10.2
26

37
- Fix issue with incorrect reading of lists via NETCONF

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: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,43 @@ description: |-
77

88
# Changelog
99

10+
## 0.11.0
11+
12+
- Add `iosxe_crypto_engine` resource and data source for crypto engine compliance shield disable configuration
13+
- Fix `iosxe_yang` resource payload ordering with NETCONF, [link](https://github.com/CiscoDevNet/terraform-provider-iosxe/issues/372)
14+
- 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
15+
- Add `ip_default_gateway` attribute to `iosxe_system` resource and data source for default gateway configuration on non-routing devices
16+
- Add `device_classifier` attribute to `iosxe_system` resource and data source for endpoint device classification
17+
- Add `table_maps` attribute to `iosxe_system` resource and data source for QoS table map configuration with DSCP/CoS value translation
18+
- Enhance `set_communities` attribute documentation in `iosxe_route_map` to clarify support for well-known BGP community values (internet, local-AS, no-advertise, no-export, gshut)
19+
- Add `route_map` attribute to `iosxe_bgp_l2vpn_evpn_neighbor` resource and data source
20+
- Add `import_path_selection_all` and `ipv4_unicast_aggregate_addresses.summary_only` attributes to `iosxe_bgp_address_family_ipv4_vrf` resource and data source
21+
- BREAKING CHANGE: Rename `evpn_instance` to `evpn_instance_legacy` and `evpn_instance_vni` to `evpn_instance_vni_legacy` in `iosxe_vlan_configuration` resource and data source
22+
- Add `evpn_instance`, `evpn_instance_vni`, and `evpn_instance_protected` attributes to `iosxe_vlan_configuration` resource and data source
23+
- Add `evpn_instance_profile` and `evpn_instance_profile_protected` attributes to `iosxe_vlan_configuration` resource and data source
24+
- Add `ttl` attribute to `iosxe_flow_exporter` resource and data source
25+
- Add `match_routing_vrf_input`, `match_vxlan_vnid`, `match_vxlan_vtep_input`, and `match_vxlan_vtep_output` attributes to `iosxe_flow_record` resource and data source
26+
- Add `register_source_interface_loopback` attributes to `iosxe_pim` resource and data source
27+
- Add `iosxe_bgp_address_family_ipv4_mvpn` resource and data source
28+
- Add `iosxe_bgp_ipv4_mvpn_neighbor` resource and data source
29+
- Add `vlan_based_multicast_advertise` attribute to `iosxe_evpn_instance` resource and data source
30+
- Add `multicast_advertise` attribute to `iosxe_evpn` resource and data source
31+
- Add `carrier_delay_msec` and `hold_queues` attributes to `iosxe_interface_ethernet` resource and data source
32+
- Add `iosxe_pim_ipv6` resource and data source
33+
- Add `iosxe_interface_pim_ipv6` resource and data source
34+
- Add `iosxe_multicast` resource and data source
35+
- Add `deadtime` attribute to AAA group server radius in `iosxe_aaa` resource and data source
36+
- Add `key_encryption`, `automate_tester_ignore_auth_port`, and `automate_tester_idle_time` attributes to `iosxe_radius` resource and data source
37+
- Add `authentication_mac_move_permit` and `authentication_mac_move_deny_uncontrolled` attributes to `iosxe_system` resource and data source
38+
- Add `dot1x` and `dot1x_default_*` attributes to `iosxe_aaa_accounting` resource and data source
39+
- BREAKING CHANGE: Rename `iosxe_tacacs_server` resource and data source to `iosxe_tacacs`
40+
- Add `port` attribute to `iosxe_tacacs` resource and data source
41+
- BREAKING CHANGE: Add new `iosxe_tacacs_server` resource and data source
42+
- Add `enable_default_group_legacy`, `enable_default_enable_legacy`, `enable_default_line_legacy` and `enable_default_none_legacy` attributes to `iosxe_aaa_authentication` resource and data source
43+
- Add `iosxe_isis` resource and data source
44+
- Add `iosxe_interface_isis` resource and data source
45+
- Add `ip_router_isis` attribute to `iosxe_interface_ethernet`, `iosxe_interface_loopback`, `iosxe_interface_port_channel_subinterface`, `iosxe_interface_port_channel`, `iosxe_interface_tunnel` and `iosxe_interface_vlan` resources and data sources
46+
1047
## 0.10.2
1148

1249
- Fix issue with incorrect reading of lists via NETCONF

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)