On resource resource "iosxe_service" there is not option to force password encryption aes .
My goal is to convert type7 password into type6. As a workaround I am using the following cli code:
resource "iosxe_cli" "service_password_encryption_aes" {
cli = <<-EOT
password encryption aes
key config-key password-encrypt AESPASSENCRYPT
EOT
raw = true
}
However, keys type 7 remain unchanged.
If I manually apply the "key config-key password-encrypt AESPASSENCRYPT" into the router cli, then type7 keys are converted to type 6.
Any suggestion or workaround would be highly appreciated