mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): show guest nic index (#23957)
This commit is contained in:
@@ -53,6 +53,8 @@ type GuestnetworkShortDesc struct {
|
||||
NetworkId string `json:"network_id"`
|
||||
// 附属IP
|
||||
SubIps string `json:"sub_ips"`
|
||||
// 网卡序号
|
||||
Index int `json:"index"`
|
||||
}
|
||||
|
||||
type GuestnetworkListInput struct {
|
||||
|
||||
@@ -559,7 +559,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