mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
Merge pull request #1012 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:hotfix/qj-baremetal-filter-network-by-private-cloud to release/2.6.0
* commit '29d0f3cfed65f0051a0376c4462f4ca1ec3dfcdc': fix: baremetal dhcp request filter networks with private cloud ONLY
This commit is contained in:
@@ -191,6 +191,7 @@ func (h *DHCPHandler) findNetworkConf(filterUseIp bool) (*types.SNetworkConfig,
|
||||
"filter.1")
|
||||
params.Add(jsonutils.JSONTrue, "filter_any")
|
||||
}
|
||||
params.Add(jsonutils.JSONTrue, "is_private")
|
||||
session := h.baremetalManager.GetClientSession()
|
||||
ret, err := modules.Networks.List(session, params)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user