I added some debug and it becomes more obvious what the issue is.
Like I stated, I have 4 VPCs, there are subnets across them that have identical CIDR ranges. The list of subnets to add are coming from mutiple VPCs. When they are added, a duplicate is detected because only the CIDR is taken into consideration.
Here are the subnets being added, I have set the NetworkId to be the VPC id.
I added some debug and it becomes more obvious what the issue is.
Like I stated, I have 4 VPCs, there are subnets across them that have identical CIDR ranges. The list of subnets to add are coming from mutiple VPCs. When they are added, a duplicate is detected because only the CIDR is taken into consideration.
Here are the subnets being added, I have set the NetworkId to be the VPC id.
AddSubnet() state.SubnetInf o{ProviderId: "subnet- 9c429dfb" , ProviderNetwork Id:"vpc- 327dc555" , CIDR:"10.0.1.0/24", VLANTag:0, AvailabilityZon e:"us-west- 2b", SpaceName:""} o{ProviderId: "subnet- 2bb24773" , ProviderNetwork Id:"vpc- c29f1da6" , CIDR:"10.0.1.0/24", VLANTag:0, AvailabilityZon e:"us-west- 2c", SpaceName:""}
AddSubnet() state.SubnetInf
Subnet() &state. subnetDoc{ DocID:" 45cb8652- b8ea-4daf- 8edd-68aa5b87e4 ce:10.0. 1.0/24" , ModelUUID: "45cb8652- b8ea-4daf- 8edd-68aa5b87e4 ce", Life:0, ProviderId: "subnet- 9c429dfb" , ProviderNetwork Id:"vpc- 327dc555" , CIDR:"10.0.1.0/24", VLANTag:0, AvailabilityZon e:"us-west- 2b", IsPublic:false, SpaceName:""}