Merge pull request #13561 from ioito/hotfix/qx-global-vpc-delete-cmd

fix(climc): add cmd for global vpc
This commit is contained in:
Zexi Li
2022-03-01 11:07:49 +08:00
committed by GitHub
+2
View File
@@ -17,12 +17,14 @@ package compute
import (
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient/modules/compute"
opts "yunion.io/x/onecloud/pkg/mcclient/options"
options "yunion.io/x/onecloud/pkg/mcclient/options/compute"
)
func init() {
cmd := shell.NewResourceCmd(&compute.GlobalVpcs).WithKeyword("global-vpc")
cmd.List(&options.GlobalVpcListOptions{})
cmd.Delete(&opts.BaseIdOptions{})
cmd.Show(&options.GlobalVpcIdOption{})
cmd.Create(&options.GlobalVpcCreateOptions{})
cmd.Perform("syncstatus", &options.GlobalVpcIdOption{})