File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,10 +50,6 @@ func NewCmdUDPNCreate(out io.Writer) *cobra.Command {
5050 Short : "Create UDPN tunnel" ,
5151 Long : "Create UDPN tunnel" ,
5252 Run : func (c * cobra.Command , args []string ) {
53- if * req .Bandwidth < 2 || * req .Bandwidth > 1000 {
54- fmt .Fprintln (out , "Error, bandwidth must be between 2Mb and 1000Mb" )
55- return
56- }
5753 if * req .Peer1 == * req .Peer2 {
5854 fmt .Fprintln (out , "Error, flags peer1 and peer2 can't be equal" )
5955 return
@@ -200,10 +196,6 @@ func NewCmdUdpnModifyBW(out io.Writer) *cobra.Command {
200196 Short : "Modify bandwidth of UDPN tunnel" ,
201197 Long : "Modify bandwidth of UDPN tunnel" ,
202198 Run : func (c * cobra.Command , args []string ) {
203- if * req .Bandwidth < 2 || * req .Bandwidth > 1000 {
204- fmt .Fprintln (out , "Error, bandwidth must be between 2Mb and 1000Mb" )
205- return
206- }
207199 for _ , idname := range idNames {
208200 req .UDPNId = sdk .String (base .PickResourceID (idname ))
209201 _ , err := base .BizClient .ModifyUDPNBandwidth (req )
You can’t perform that action at this time.
0 commit comments