diff --git a/pkg/util/aws/host.go b/pkg/util/aws/host.go index 667e44c92e..6aab9df872 100644 --- a/pkg/util/aws/host.go +++ b/pkg/util/aws/host.go @@ -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 // 镜像及硬盘配置 diff --git a/pkg/util/aws/zone.go b/pkg/util/aws/zone.go index a6da974304..0c16441985 100644 --- a/pkg/util/aws/zone.go +++ b/pkg/util/aws/zone.go @@ -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 }