Merge pull request #10147 from zexi/automated-cherry-pick-of-#10146-upstream-release-3.7

Automated cherry pick of #10146: Feature/baremetal h3c oem
This commit is contained in:
yunion-ci-robot
2021-02-06 13:32:24 +08:00
committed by GitHub
2 changed files with 18 additions and 6 deletions
+16 -6
View File
@@ -84,14 +84,24 @@ func QemuProfile() IPMIProfile {
}
}
func H3CProfile() IPMIProfile {
return IPMIProfile{
LanChannel: []int{8, 1},
RootName: "root",
RootId: 2,
StrongPass: true,
}
}
var (
PROFILES map[string]IPMIProfile = map[string]IPMIProfile{
"inspur": InspurProfile(),
"lenovo": LenovoProfile(),
"hp": HpProfile(),
"huawei": HuaweiProfile(),
"foxconn": FoxconnProfile(),
"qemu": QemuProfile(),
types.OEM_NAME_INSPUR: InspurProfile(),
types.OEM_NAME_LENOVO: LenovoProfile(),
types.OEM_NAME_HP: HpProfile(),
types.OEM_NAME_HUAWEI: HuaweiProfile(),
types.OEM_NAME_FOXCONN: FoxconnProfile(),
types.OEM_NAME_QEMU: QemuProfile(),
types.OEM_NAME_H3C: H3CProfile(),
}
)
+2
View File
@@ -35,6 +35,7 @@ const (
OEM_NAME_FOXCONN = "foxconn"
OEM_NAME_QEMU = "qemu"
OEM_NAME_SUPERMICRO = "supermicro"
OEM_NAME_H3C = "h3c"
)
var (
@@ -48,6 +49,7 @@ var (
OEM_NAME_FOXCONN,
OEM_NAME_QEMU,
OEM_NAME_SUPERMICRO,
OEM_NAME_H3C,
}
)