From 74c8c6bfe25065a32b90a48f70b0cd85c59f65eb Mon Sep 17 00:00:00 2001 From: wanyaoqi Date: Tue, 1 Sep 2020 20:09:48 +0800 Subject: [PATCH] hostinfo: try create network add is_on_premise (#7706) --- pkg/hostman/hostinfo/hostinfo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/hostman/hostinfo/hostinfo.go b/pkg/hostman/hostinfo/hostinfo.go index a8047b54e4..450664091c 100644 --- a/pkg/hostman/hostinfo/hostinfo.go +++ b/pkg/hostman/hostinfo/hostinfo.go @@ -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)