mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): show guest nic index (#23958)
This commit is contained in:
@@ -78,6 +78,8 @@ type GuestnetworkShortDesc struct {
|
||||
IsDefault bool `json:"is_default"`
|
||||
// 计费模式
|
||||
ChargeType string `json:"charge_type"`
|
||||
// 网卡序号
|
||||
Index int `json:"index"`
|
||||
}
|
||||
|
||||
type GuestnetworkListInput struct {
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user