mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix host register get network filter: add server_type baremetal
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user