add create vm

This commit is contained in:
TangBin
2018-10-12 19:53:10 +08:00
parent 13396ce7c7
commit e74ef21266
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -171,7 +171,8 @@ func (self *SHost) _createVM(name string, imgId string, sysDiskSize int, cpu int
vswitchId string, ipAddr string, desc string, passwd string,
storageType string, diskSizes []int, publicKey string, secgroupId string) (string, error) {
// 网络配置及安全组绑定
// todo:// https://www.guru99.com/creating-amazon-ec2-instance.html
self.zone.getNetworkById(vswitchId)
// 同步keypair
// 镜像及硬盘配置
+5
View File
@@ -42,6 +42,11 @@ func (self *SZone) GetIWires() ([]cloudprovider.ICloudWire, error) {
return self.iwires, nil
}
func (self *SZone) getNetworkById(vswitchId string) error {
// todo: implement me
return nil
}
func (self *SZone) GetId() string {
return self.ZoneId
}