From bcc3b6769c945e24db860735dabbff852a807df8 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Tue, 3 Sep 2024 14:41:24 +0800 Subject: [PATCH] fix(climc): hostlocal server type for network-create (#21151) --- pkg/mcclient/options/compute/network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mcclient/options/compute/network.go b/pkg/mcclient/options/compute/network.go index 2700d72c7e..84946ecfed 100644 --- a/pkg/mcclient/options/compute/network.go +++ b/pkg/mcclient/options/compute/network.go @@ -80,7 +80,7 @@ type NetworkCreateOptions struct { VlanId int64 `help:"Vlan ID" default:"1"` IfnameHint string `help:"Hint for ifname generation"` AllocPolicy string `help:"Address allocation policy" choices:"none|stepdown|stepup|random"` - ServerType string `help:"Server type" choices:"baremetal|container|eip|guest|ipmi|pxe"` + ServerType string `help:"Server type" choices:"baremetal|container|eip|guest|ipmi|pxe|hostlocal"` IsAutoAlloc *bool `help:"Auto allocation IP pool"` BgpType string `help:"Internet service provider name" positional:"false"` Desc string `help:"Description" metavar:"DESCRIPTION"`