支持natgateway同步

This commit is contained in:
ioito
2019-05-27 17:06:46 +08:00
parent 2541ebc16c
commit 0d31819208
53 changed files with 2324 additions and 135 deletions

View File

@@ -151,7 +151,7 @@ func (eip *SEipAddress) GetMode() string {
}
func (eip *SEipAddress) GetAssociationType() string {
return "server"
return api.EIP_ASSOCIATE_TYPE_SERVER
}
func (eip *SEipAddress) GetAssociationExternalId() string {

View File

@@ -21,6 +21,7 @@ import (
api "yunion.io/x/onecloud/pkg/apis/compute"
"yunion.io/x/onecloud/pkg/cloudprovider"
"yunion.io/x/onecloud/pkg/multicloud"
)
const (
@@ -31,6 +32,8 @@ const (
)
type SVpc struct {
multicloud.SVpc
region *SRegion
iwires []cloudprovider.ICloudWire