mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
baremetal and host request IP from on premise network
This commit is contained in:
@@ -192,7 +192,7 @@ func (h *DHCPHandler) findNetworkConf(filterUseIp bool) (*types.SNetworkConfig,
|
||||
"filter.1")
|
||||
params.Add(jsonutils.JSONTrue, "filter_any")
|
||||
}
|
||||
params.Add(jsonutils.JSONTrue, "is_private")
|
||||
params.Add(jsonutils.JSONTrue, "is_on_premise")
|
||||
session := h.baremetalManager.GetClientSession()
|
||||
ret, err := modules.Networks.List(session, params)
|
||||
if err != nil {
|
||||
|
||||
@@ -724,7 +724,7 @@ func (h *SHostInfo) fetchAccessNetworkInfo() {
|
||||
}
|
||||
params := jsonutils.NewDict()
|
||||
params.Set("ip", jsonutils.NewString(masterIp))
|
||||
params.Set("is_private", jsonutils.JSONTrue)
|
||||
params.Set("is_on_premise", jsonutils.JSONTrue)
|
||||
params.Set("limit", jsonutils.NewInt(0))
|
||||
wire, err := hostutils.GetWireOfIp(context.Background(), params)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user