diff --git a/pkg/baremetal/profiles/profiles.go b/pkg/baremetal/profiles/profiles.go index bb604dafca..a65fc18d01 100644 --- a/pkg/baremetal/profiles/profiles.go +++ b/pkg/baremetal/profiles/profiles.go @@ -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(), } ) diff --git a/pkg/cloudcommon/types/types.go b/pkg/cloudcommon/types/types.go index 9b1d48fe1b..ae82b48edd 100644 --- a/pkg/cloudcommon/types/types.go +++ b/pkg/cloudcommon/types/types.go @@ -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, } )