From 2f7f26e6403e86d860863fdd6b3153ed88cb016f Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Tue, 14 Jan 2020 21:26:32 +0800 Subject: [PATCH] climc: lblistener: allow setting backendgroup to empty --- pkg/mcclient/options/loadbalancerlisteners.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/mcclient/options/loadbalancerlisteners.go b/pkg/mcclient/options/loadbalancerlisteners.go index d5c2391650..e90e74a21e 100644 --- a/pkg/mcclient/options/loadbalancerlisteners.go +++ b/pkg/mcclient/options/loadbalancerlisteners.go @@ -21,7 +21,7 @@ type LoadbalancerListenerCreateOptions struct { ListenerType string `required:"true" choices:"tcp|udp|http|https"` ListenerPort *int `required:"true"` BackendServerPort *int - BackendGroup string + BackendGroup *string `json:",allowempty"` Scheduler string `required:"true" choices:"rr|wrr|wlc|sch|tch"` @@ -81,7 +81,7 @@ type LoadbalancerListenerListOptions struct { Loadbalancer string ListenerType string `choices:"tcp|udp|http|https"` ListenerPort *int - BackendGroup string + BackendGroup *string `json:",allowempty"` Scheduler string `choices:"rr|wrr|wlc|sch|tch"` @@ -137,7 +137,7 @@ type LoadbalancerListenerUpdateOptions struct { ID string `json:"-"` Name string - BackendGroup string + BackendGroup *string `json:",allowempty"` Scheduler string `choices:"rr|wrr|wlc|sch|tch"`