Skip to content

Commit

Permalink
made similar changes in main.tf and test files
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-ibm committed Dec 5, 2024
1 parent e7f6c63 commit a054149
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
24 changes: 16 additions & 8 deletions examples/ibm-is-ng/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1786,72 +1786,80 @@ resource "ibm_is_instance" "is_instance" {
subnet = ibm_is_subnet.is_subnet.id
}
cluster_network_attachments {
name = "cna-1"
cluster_network_interface{
auto_delete = true
name = "cna-1"
name = "cni-1"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-2"
cluster_network_interface{
auto_delete = true
name = "cna-2"
name = "cni-2"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-3"
cluster_network_interface{
auto_delete = true
name = "cna-3"
name = "cni-3"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-4"
cluster_network_interface{
auto_delete = true
name = "cna-4"
name = "cni-4"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-5"
cluster_network_interface{
auto_delete = true
name = "cna-5"
name = "cni-5"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-6"
cluster_network_interface{
auto_delete = true
name = "cna-6"
name = "cni-6"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-7"
cluster_network_interface{
auto_delete = true
name = "cna-7"
name = "cni-7"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-8"
cluster_network_interface{
auto_delete = true
name = "cna-8"
name = "cni-8"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
Expand Down
24 changes: 16 additions & 8 deletions ibm/service/vpc/resource_ibm_is_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3488,72 +3488,80 @@ func testAccCheckIBMISInstanceClusterNetworkAttachmentConfig(vpcname, clustersub
}
}
cluster_network_attachments {
name = "cna-1"
cluster_network_interface{
auto_delete = true
name = "cna-1"
name = "cni-1"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-2"
cluster_network_interface{
auto_delete = true
name = "cna-2"
name = "cni-2"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-3"
cluster_network_interface{
auto_delete = true
name = "cna-3"
name = "cni-3"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-4"
cluster_network_interface{
auto_delete = true
name = "cna-4"
name = "cni-4"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-5"
cluster_network_interface{
auto_delete = true
name = "cna-5"
name = "cni-5"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-6"
cluster_network_interface{
auto_delete = true
name = "cna-6"
name = "cni-6"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-7"
cluster_network_interface{
auto_delete = true
name = "cna-7"
name = "cni-7"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
}
}
cluster_network_attachments {
name = "cna-8"
cluster_network_interface{
auto_delete = true
name = "cna-8"
name = "cni-8"
subnet {
id = ibm_is_cluster_network_subnet.is_cluster_network_subnet_instance.cluster_network_subnet_id
}
Expand Down

0 comments on commit a054149

Please sign in to comment.