From afac4573bb4bac016ddf59276f323ab060f5a3d0 Mon Sep 17 00:00:00 2001 From: Jian Qiu Date: Mon, 19 Aug 2024 10:17:57 +0800 Subject: [PATCH] fix: climc command to public/private dns-zone (#21054) Co-authored-by: Qiu Jian --- cmd/climc/shell/compute/dnszone.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/climc/shell/compute/dnszone.go b/cmd/climc/shell/compute/dnszone.go index 497614c290..466f5c6f5c 100644 --- a/cmd/climc/shell/compute/dnszone.go +++ b/cmd/climc/shell/compute/dnszone.go @@ -22,6 +22,7 @@ import ( "yunion.io/x/onecloud/cmd/climc/shell" modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute" + "yunion.io/x/onecloud/pkg/mcclient/options" "yunion.io/x/onecloud/pkg/mcclient/options/compute" ) @@ -32,6 +33,8 @@ func init() { cmd.ClassShow(&compute.DnsZoneCapabilitiesOptions{}) cmd.Delete(&compute.SDnsZoneIdOptions{}) cmd.Create(&compute.DnsZoneCreateOptions{}) + cmd.Perform("public", &options.BasePublicOptions{}) + cmd.Perform("private", &options.BaseIdOptions{}) cmd.Perform("syncstatus", &compute.SDnsZoneIdOptions{}) cmd.Perform("purge", &compute.SDnsZoneIdOptions{}) cmd.Perform("add-vpcs", &compute.DnsZoneAddVpcsOptions{})