-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Heyo 👋
I'm editing a couple of feature templates, and these feature templates are used in 2 device templates, and each of those device templates are attached to 2 devices (So 1 device template each).
From the provider doco
This provider supports updates to a single feature template, device template and policy per device within a single
terraform applyoperation
How does this work with multiple devices? Is it just not compatible ? I've done A LOT of applies to no avail.
I'm updating a couple of sdwan_cisco_vpn_interface_feature_template address_variable names and making the similar change to my sdwan_attach_feature_device_template variables
eg.
Multiple feature template changes as such 👇
# module.feature_templates.sdwan_cisco_vpn_interface_feature_template.... will be updated in-place
~ resource "sdwan_cisco_vpn_interface_feature_template" "..." {
~ address_variable = "vpn_if_ipv4_address" -> "vpn0_loopback_ipv4_address"
id = ""
name = ""
~ version = 0 -> (known after apply)
# (10 unchanged attributes hidden)
}
And a couple of device template attachment changes as such 👇
# module.device_templates.sdwan_attach_feature_device_template.... will be updated in-place
~ resource "sdwan_attach_feature_device_template" "..." {
~ devices = [
~ {
id = ""
~ variables = {
+ "vpn0_loopback_ipv4_address" = "<ip cidr>"
- "vpn_if_ipv4_address" = "<ip cidr>" -> null
# (3 unchanged elements hidden)
}
},
]
id = ""
~ version = 6 -> (known after apply)
}
And the error I'm constantly getting is 👇
Warning: Client Warning
with module.feature_templates.sdwan_cisco_vpn_interface_feature_template....,
on modules/feature-templates/vpn-interface.tf line 41, in resource "sdwan_cisco_vpn_interface_feature_template" "...":
41: resource "sdwan_cisco_vpn_interface_feature_template" "..." {
Failed to modify template due to template being locked by another change.
Template changes will not be applied. Re-run 'terraform apply' to try again.
Is there something I'm missing here 😅