Skip to content

Commit 16cfb8b

Browse files
authored
remove bandwidth limit
remove bandwidth limit
1 parent 59f9aff commit 16cfb8b

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

cmd/unet.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)