Skip to content

Commit

Permalink
feat: add cloud common for h3c
Browse files Browse the repository at this point in the history
  • Loading branch information
askyrie authored and SongZhen0704 committed Jul 29, 2024
1 parent 8fa47b2 commit cb9fea3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/ctl/common/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const (
DOMAIN_TYPE_NFVO DomainType = 28 // nfvo
DOMAIN_TYPE_SUGON DomainType = 29 // sugon
DOMAIN_TYPE_VOLCENGINE DomainType = 30 // volcengine
DOMAIN_TYPE_H3C DomainType = 31 // h3c
)

var DomainTypes []DomainType = []DomainType{
Expand All @@ -89,6 +90,7 @@ var DomainTypes []DomainType = []DomainType{
DOMAIN_TYPE_NFVO,
DOMAIN_TYPE_SUGON,
DOMAIN_TYPE_VOLCENGINE,
DOMAIN_TYPE_H3C,
}

func GetDomainTypeByName(domainTypeName string) DomainType {
Expand Down
3 changes: 3 additions & 0 deletions server/controller/common/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ const (
NFVO = 28
SUGON = 29
VOLCENGINE = 30
H3C = 31

OPENSTACK_EN = "openstack"
VSPHERE_EN = "vsphere"
Expand Down Expand Up @@ -323,6 +324,7 @@ const (
NFVO_EN = "nfvo"
SUGON_EN = "sugon"
VOLCENGINE_EN = "volcengine"
H3C_EN = "h3c"

TENCENT_CH = "腾讯云"
ALIYUN_CH = "阿里云"
Expand All @@ -335,6 +337,7 @@ const (
NFVO_CH = "华为NFVO+"
SUGON_CH = "曙光云"
VOLCENGINE_CH = "火山云"
H3C_CH = "华三云"

OPENSTACK_CH = "OpenStack"
VSPHERE_CH = "vSphere"
Expand Down
1 change: 1 addition & 0 deletions server/controller/http/service/resource/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ var DOMAIN_PASSWORD_KEYS = map[string]bool{
"boss_secret_key": false,
"manage_one_password": false,
"token": false,
"app_secret": false,
}

func getGrpcServerAndPort(db *mysql.DB, controllerIP string, cfg *config.ControllerConfig) (string, string) {
Expand Down

0 comments on commit cb9fea3

Please sign in to comment.