fix(region): show guest nic index (#23958)

This commit is contained in:
屈轩
2025-12-24 11:33:36 +08:00
committed by GitHub
parent 17882cca3f
commit 4dd9e26225
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -78,6 +78,8 @@ type GuestnetworkShortDesc struct {
IsDefault bool `json:"is_default"`
// 计费模式
ChargeType string `json:"charge_type"`
// 网卡序号
Index int `json:"index"`
}
type GuestnetworkListInput struct {
+1 -1
View File
@@ -566,7 +566,7 @@ func fetchGuestNICs(ctx context.Context, guestIds []string, virtual tristate.Tri
gnwq := GuestnetworkManager.Query()
q := gnwq.AppendField(
gnwq.Field("guest_id"),
gnwq.Field("index"),
gnwq.Field("ip_addr"),
gnwq.Field("ip6_addr"),
gnwq.Field("mac_addr").Label("mac"),