From 5aac03c01c9f2df6194ed6ccfd32a0d43be1b802 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Tue, 20 Sep 2022 10:44:08 +0800 Subject: [PATCH] fix(climc): always net vlan_id to 1 when updating network --- pkg/mcclient/options/network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mcclient/options/network.go b/pkg/mcclient/options/network.go index 7360f3b5d6..8c92640c4a 100644 --- a/pkg/mcclient/options/network.go +++ b/pkg/mcclient/options/network.go @@ -68,7 +68,7 @@ type NetworkUpdateOptions struct { Domain string `help:"Domain"` Dhcp string `help:"DHCP server IP"` Ntp string `help:"Ntp server domain names"` - VlanId int64 `help:"Vlan ID" default:"1"` + VlanId int64 `help:"Vlan ID"` ExternalId string `help:"External ID"` AllocPolicy string `help:"Address allocation policy" choices:"none|stepdown|stepup|random"` IsAutoAlloc *bool `help:"Add network into auto-allocation pool" negative:"no_auto_alloc"`