From aeac6234d9135945ec705d564103d346b8bd97ab Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Thu, 28 Feb 2019 21:09:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=20=E9=9D=9Ebaremetal?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=9A=84=E7=89=A9=E7=90=86=E6=9C=BA=20PXE=20?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E4=BC=9A=E8=A2=AB=E9=94=99=E8=AF=AF=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/baremetal/pxe/dhcp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/baremetal/pxe/dhcp.go b/pkg/baremetal/pxe/dhcp.go index 729b3a7bcb..fbced04507 100644 --- a/pkg/baremetal/pxe/dhcp.go +++ b/pkg/baremetal/pxe/dhcp.go @@ -215,6 +215,7 @@ func (h *DHCPHandler) findNetworkConf(filterUseIp bool) (*types.SNetworkConfig, func (h *DHCPHandler) createOrUpdateBaremetal() (jsonutils.JSONObject, error) { session := h.baremetalManager.GetClientSession() params := jsonutils.NewDict() + params.Add(jsonutils.NewString(models.HOST_TYPE_BAREMETAL), "host_type") params.Add(jsonutils.NewString(h.ClientMac.String()), "any_mac") ret, err := modules.Hosts.List(session, params) if err != nil {