Skip to content

Commit 49ca850

Browse files
askyrieSongZhen0704
authored andcommitted
feat: add cloud common for ruijie
1 parent ada945c commit 49ca850

5 files changed

Lines changed: 10 additions & 4 deletions

File tree

cli/ctl/common/const.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const (
6767
DOMAIN_TYPE_H3C DomainType = 31 // h3c
6868
DOMAIN_TYPE_FUSIONCOMPUTE DomainType = 32 // fusioncompute
6969
DOMAIN_TYPE_SCP DomainType = 33 // scp
70+
DOMAIN_TYPE_RUIJIE DomainType = 34 // ruijie
7071
)
7172

7273
var DomainTypes []DomainType = []DomainType{
@@ -96,6 +97,7 @@ var DomainTypes []DomainType = []DomainType{
9697
DOMAIN_TYPE_H3C,
9798
DOMAIN_TYPE_FUSIONCOMPUTE,
9899
DOMAIN_TYPE_SCP,
100+
DOMAIN_TYPE_RUIJIE,
99101
}
100102

101103
func GetDomainTypeByName(domainTypeName string) DomainType {

cli/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ toolchain go1.24.4
66

77
require (
88
github.com/bitly/go-simplejson v0.5.0
9-
github.com/deepflowio/deepflow/message v0.0.0-20251030080503-9e5211641351
9+
github.com/deepflowio/deepflow/message v0.0.0-20251106062554-cd61c2b9c965
1010
github.com/deepflowio/deepflow/server v1.6.66-0.20251030080503-9e5211641351
1111
github.com/golang/protobuf v1.5.4
1212
github.com/mattn/go-runewidth v0.0.14
@@ -51,7 +51,7 @@ require (
5151
github.com/go-playground/validator/v10 v10.19.0 // indirect
5252
github.com/goccy/go-json v0.10.2 // indirect
5353
github.com/gogo/protobuf v1.3.2 // indirect
54-
github.com/golang/snappy v0.0.4 // indirect
54+
github.com/golang/snappy v1.0.0 // indirect
5555
github.com/google/gnostic-models v0.6.9 // indirect
5656
github.com/google/go-cmp v0.7.0 // indirect
5757
github.com/google/gopacket v1.1.19 // indirect

cli/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu
179179
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
180180
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
181181
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
182-
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
183-
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
182+
github.com/golang/snappy v1.0.0 h1:Oy607GVXHs7RtbggtPBnr2RmDArIsAefDwvrdWvRhGs=
183+
github.com/golang/snappy v1.0.0/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
184184
github.com/google/gnostic-models v0.6.9 h1:MU/8wDLif2qCXZmzncUQ/BOfxWfthHi63KqpoNbWqVw=
185185
github.com/google/gnostic-models v0.6.9/go.mod h1:CiWsm0s6BSQd1hRn8/QmxqB6BesYcbSZxsz9b0KuDBw=
186186
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=

server/controller/common/const.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ const (
353353
H3C = 31
354354
FUSIONCOMPUTE = 32
355355
SCP = 33
356+
RUIJIE = 34
356357

357358
OPENSTACK_EN = "openstack"
358359
VSPHERE_EN = "vsphere"
@@ -386,6 +387,7 @@ const (
386387
H3C_EN = "h3c"
387388
FUSIONCOMPUTE_EN = "fusioncompute"
388389
SCP_EN = "scp"
390+
RUIJIE_EN = "ruijie"
389391

390392
TENCENT_CH = "腾讯云"
391393
ALIYUN_CH = "阿里云"
@@ -399,6 +401,7 @@ const (
399401
SUGON_CH = "曙光云"
400402
VOLCENGINE_CH = "火山云"
401403
H3C_CH = "华三云"
404+
RUIJIE_CH = "锐捷云"
402405

403406
OPENSTACK_CH = "OpenStack"
404407
VSPHERE_CH = "vSphere"

server/controller/recorder/common/const.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ var UNCHECK_NETWORK_DOMAINS = []int{
3939
ctrlrcommon.CLOUD_TOWER,
4040
ctrlrcommon.FUSIONCOMPUTE,
4141
ctrlrcommon.SCP,
42+
ctrlrcommon.RUIJIE,
4243
}
4344

4445
var DEVICE_TYPE_INT_TO_STR = map[int]string{

0 commit comments

Comments
 (0)