You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when we use sdwan_attach_feature_device_template to detach a specific device from a device template, we see that all the devices attached with that Device Template is detached from the template rather than just the device we intended to detach.
For example, the following 2 devices are attached to device template DT-DC-C8000V-01
Now the Terraform Plan is also just confirming, that only one device will be detached from Device template
# module.sdwan.sdwan_attach_feature_device_template.attach_feature_device_template["C8K-E94D7B88-4B9E-3323-C6C3-F29079FAAC3B"] will be destroyed
# (because key ["C8K-E94D7B88-4B9E-3323-C6C3-F29079FAAC3B"] is not in for_each map)
- resource "sdwan_attach_feature_device_template" "attach_feature_device_template" {
- devices = [
- {
- id = "C8K-E94D7B88-4B9E-3323-C6C3-F29079FAAC3B" -> null
- variables = {
- "controller_groups" = "1,2"
- "global_cdp_enable" = "true"
<truncated>
} -> null
},
] -> null
- id = "50b663e5-8669-4a95-99a6-13bfe47d7a55" -> null
- version = 0 -> null
}
Plan: 0 to add, 0 to change, 1 to destroy.
However, we see that both the devices that were attached to the Device Template DT-DC-C8000V-01 were detached. You can see below, both devices switched mode to CLI
On debugging the Terraform provider calls, we are able to confirm that the Provider did ask the API to detach both devices from the template rather than just one.
Update: The initial issues has been identified where by modules has been developed so that one sdwan_attach_feature_device_template contains one device (Option 1) and provider was developed so that one sdwan_attach_feature_device_template would contain multiple devices (Option 2) resulting in the all devices being detached when using Option 1.
A second issue has also been identified when pushing an update using Option 2. When an update is pushed to a single device, all devices are currently updated. Both issues are currently being looked into.
when we use sdwan_attach_feature_device_template to detach a specific device from a device template, we see that all the devices attached with that Device Template is detached from the template rather than just the device we intended to detach.
For example, the following 2 devices are attached to device template DT-DC-C8000V-01
vManage showing device attachment to template
Now, we want to detach device C8K-E94D7B88-4B9E-3323-C6C3-F29079FAAC3B from Device Template DT-DC-C8000V-01
Now the Terraform Plan is also just confirming, that only one device will be detached from Device template
However, we see that both the devices that were attached to the Device Template DT-DC-C8000V-01 were detached. You can see below, both devices switched mode to CLI
On debugging the Terraform provider calls, we are able to confirm that the Provider did ask the API to detach both devices from the template rather than just one.
The text was updated successfully, but these errors were encountered: