mcclient: models: Server: add fields for eip and nics

This commit is contained in:
Yousong Zhou
2021-02-23 15:34:23 +08:00
parent 6de0b2e35d
commit b7f2004670
+10
View File
@@ -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