Skip to content

Commit 558ae9a

Browse files
authored
fix(clb): [117638097]add ccn backend (#2729)
* add ccn backend * add ccn backend
1 parent 9e0e061 commit 558ae9a

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.changelog/2729.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_clb_attachment: support `CCN` backend
3+
```

tencentcloud/services/clb/extension_clb.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ const (
135135
CLB_BACKEND_TYPE_CVM = "CVM"
136136
CLB_BACKEND_TYPE_ENI = "ENI"
137137
CLB_BACKEND_TYPE_NAT = "NAT"
138+
CLB_BACKEND_TYPE_CCN = "CCN"
138139
)
139140

140141
const (

tencentcloud/services/clb/resource_tc_clb_attachment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ func resourceTencentCloudClbServerAttachmentRead(d *schema.ResourceData, meta in
440440
"instance_id": *onlineTarget.InstanceId,
441441
}
442442
targets = append(targets, target)
443-
} else if *onlineTarget.Type == CLB_BACKEND_TYPE_ENI || *onlineTarget.Type == CLB_BACKEND_TYPE_NAT {
443+
} else if *onlineTarget.Type == CLB_BACKEND_TYPE_ENI || *onlineTarget.Type == CLB_BACKEND_TYPE_NAT || *onlineTarget.Type == CLB_BACKEND_TYPE_CCN {
444444
target := map[string]interface{}{
445445
"weight": int(*onlineTarget.Weight),
446446
"port": int(*onlineTarget.Port),

0 commit comments

Comments
 (0)