diff --git a/pkg/compute/models/hosts.go b/pkg/compute/models/hosts.go index 685c6d4d25..5b4f9642fd 100644 --- a/pkg/compute/models/hosts.go +++ b/pkg/compute/models/hosts.go @@ -2984,7 +2984,7 @@ func (self *SHost) EnableNetif(ctx context.Context, userCred mcclient.TokenCrede return fmt.Errorf("Network %s not reacheable on mac %s", network, netif.Mac) } } else { - net, err = wire.GetCandidatePrivateNetwork(userCred, false, SERVER_TYPE_GUEST) + net, err = wire.GetCandidatePrivateNetwork(userCred, false, SERVER_TYPE_BAREMETAL) if err != nil || net == nil { return fmt.Errorf("No network found") }