fix host register get network filter: add server_type baremetal

This commit is contained in:
wanyaoqi
2020-02-24 16:36:44 +08:00
parent f5a0aaa8f0
commit 7863fc7f8a
+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)