fix host register get network filter: add server_type baremetal

This commit is contained in:
wanyaoqi
2020-02-25 11:25:46 +08:00
committed by wanyaoqi
parent 92129824c0
commit d4ba5ca52e
+1
View File
@@ -705,6 +705,7 @@ func (h *SHostInfo) fetchAccessNetworkInfo() {
params := jsonutils.NewDict()
params.Set("ip", jsonutils.NewString(masterIp))
params.Set("is_on_premise", jsonutils.JSONTrue)
params.Set("server_type", jsonutils.NewString(api.NETWORK_TYPE_BAREMETAL))
params.Set("limit", jsonutils.NewInt(0))
res, err := modules.Networks.List(h.GetSession(), params)