Skip to content

Commit 5e41fc1

Browse files
authored
fix: nat refresh (#2497)
* fix: nat refresh * fix: nat refresh
1 parent b63a749 commit 5e41fc1

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.changelog/2497.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_clb_attachment: support cross-domain binding, `target` status writing
3+
```
4+

tencentcloud/services/clb/extension_clb.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ const (
134134
const (
135135
CLB_BACKEND_TYPE_CVM = "CVM"
136136
CLB_BACKEND_TYPE_ENI = "ENI"
137+
CLB_BACKEND_TYPE_NAT = "NAT"
137138
)
138139

139140
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 {
443+
} else if *onlineTarget.Type == CLB_BACKEND_TYPE_ENI || *onlineTarget.Type == CLB_BACKEND_TYPE_NAT {
444444
target := map[string]interface{}{
445445
"weight": int(*onlineTarget.Weight),
446446
"port": int(*onlineTarget.Port),

0 commit comments

Comments
 (0)