Open cmohorea opened 5 months ago
I don't think it is related to "priority-order", as this typically should not make a difference. Can you try removing the "backup_interface" and "backup_interface_weight" attributes from your resource?
Those seems to be mandatory:
│ Error: Client Error
│
│ with sdwan_cisco_secure_internet_gateway_feature_template.CLOUD_SIG,
│ on cnrail-lab1-cloud.tf line 129, in resource "sdwan_cisco_secure_internet_gateway_feature_template" "CLOUD_SIG":
│ 129: resource "sdwan_cisco_secure_internet_gateway_feature_template" "CLOUD_SIG" {
│
│ Failed to configure object (PUT), got error: HTTP Request failed: StatusCode 500, {"error":{"message":"Server
│ error","details":"vManage server experience an unexpected error,If the problem persists, please contact your
│ administrator for details.","code":"REST0001"}}
Checking the payload generated when configuring this from the GUI, it looks like the interface pair needs to be configured like this, if there is no backup interface:
interface_pairs = [
{
active_interface = "ipsec2",
active_interface_weight = 1,
backup_interface = "_blank",
backup_interface_weight = 1,
}
]
I think I saw same "None" in the vManage's API call. Anyway, same error with the "_blank". Is there a way to see this config around "line 114" ?
│ Error: Client Error
│
│ with sdwan_attach_feature_device_template.CLOUD_GATEWAY-1,
│ on cnrail-lab1-cloud.tf line 301, in resource "sdwan_attach_feature_device_template" "CLOUD_GATEWAY-1":
│ 301: resource "sdwan_attach_feature_device_template" "CLOUD_GATEWAY-1" {
│
│ Failed to attach device template, got error: Action
│ push_feature_template_configuration-aac18172-d3fd-4745-a573-8c4fdb80b8eb for device
│ C8K-13D2040A-1F7E-9772-CBAE-1E932C941182 failed. Activity log: ["[17-Apr-2024 19:39:49 UTC] Configuring device
│ with feature template: CLOUD_GATEWAY","[17-Apr-2024 19:39:49 UTC] Failed to update configuration - Error on line
│ 114: missing element: backup-interface in
│ /vmanage-cfs:templates/vmanage-cfs:template[vmanage-cfs:template-name='vip_internal_temp_device_C8K-13D2040A-1F7E-9772-CBAE-1E932C941182-532fa8b6-17bc-4a58-8ee6-a61086137e93']/vmanage-cfs:vpn/vmanage-cfs:vpn-instance[vmanage-cfs:vpn-id='0']/vmanage-cfs:service[vmanage-cfs:svc-type='sig']/vmanage-cfs:ha-pairs/vmanage-cfs:interface-pair\n"]```
I have a SIG template definition that is based on import of the existing template, and
terraform plan
considers it up to date, no changes needed. When I'm trying to modify it, device template attachment results in the configuration update failure (outbut below). It may be related to the fact that I don't have a backup interface in a pair (backup_interface = "None"
in config). I tried to compare API call content TF vs vManage, only difference was the "priority-order" list under "ha-pairs"/"interface-pair" present in the vManage call.Resource definition for the reference: