mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
mcclient: models: Server: add fields for eip and nics
This commit is contained in:
@@ -59,6 +59,16 @@ type Server struct {
|
||||
|
||||
// Derived attributes
|
||||
Networks string
|
||||
Eip string
|
||||
Nics ServerNics
|
||||
}
|
||||
|
||||
type ServerNics []ServerNic
|
||||
type ServerNic struct {
|
||||
IpAddr string `json:"ip_addr"`
|
||||
Mac string `json:"mac"`
|
||||
NetworkId string `json:"network_id"`
|
||||
VpcId string `json:"VpcId"`
|
||||
}
|
||||
|
||||
type ServerNetworks []ServerNetwork
|
||||
|
||||
Reference in New Issue
Block a user