hostinfo: try create network add is_on_premise (#7706)

This commit is contained in:
wanyaoqi
2020-09-01 20:09:48 +08:00
committed by GitHub
parent 416afb686a
commit 74c8c6bfe2
+1
View File
@@ -780,6 +780,7 @@ func (h *SHostInfo) tryCreateNetworkOnWire() {
params.Set("mask", jsonutils.NewInt(int64(mask)))
params.Set("is_classic", jsonutils.JSONTrue)
params.Set("server_type", jsonutils.NewString(api.NETWORK_TYPE_BAREMETAL))
params.Set("is_on_premise", jsonutils.JSONTrue)
ret, err := modules.Networks.PerformClassAction(
hostutils.GetComputeSession(context.Background()),
"try-create-network", params)