Skip to content

Provisioning SDA devices with For_each #196

Closed
@kristofff1204

Description

@kristofff1204

When provision different resources with a for_each i'm getting the message that the same user intent is already in the database.

The error:
Failed to configure object (POST), got error: task '0195d840-e73a-71a6-ae93-be8c22a372e5' failed: TASK_MODIFY_PUT, NCSP11051: Error occurred while processing the 'modify' request. A different version of the same user intent already exists in the database. Additional info for support: taskId:
│ '0195d840-e73a-71a6-ae93-be8c22a372e5'. Name: ''. Incoming resourceVersion: '51'. resourceVersion in the database: '52'.,

I have the issue with following resources

resource "catalystcenter_fabric_l3_handoff_ip_transit" "HandOF_DATAVN" {
for_each = { for k, v in local.Border_HandOf_DataVN: k=>v}
network_device_id = each.value.Device_id
fabric_id = each.value.Fabric_site_ID
transit_network_id = each.value.Transit_ID
interface_name = "GigabitEthernet1/0/8"
virtual_network_name = each.value.VN_Name
vlan_id = 3300
tcp_mss_adjustment = 1400
local_ip_address = "<local_IP>"
remote_ip_address = "<remote_IP>"
}

resource "catalystcenter_fabric_device" "fabric_devices_function" {
for_each = { for k, v in local.Devices_Per_POD_Borders: k=>v}
network_device_id = each.value.Device_id
fabric_id = each.value.Fabric_site_ID
device_roles = ["CONTROL_PLANE_NODE","BORDER_NODE"]
border_types = ["LAYER_3"]
local_autonomous_system_number = var.SDA.localAS
default_exit = true
import_external_routes = false

}

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions