|
@@ -62,7 +62,7 @@ func (s *buildAudunService) AddBandwidth(ctx context.Context, req v1.Bandwidth)
|
|
|
|
|
|
func (s *buildAudunService) DelBandwidth(ctx context.Context, req v1.Bandwidth) error {
|
|
|
err := s.audun.DelBandwidthLimit(ctx, v1.Bandwidth{
|
|
|
- Name: s.BuildName(req.ServerIPStart, req.ServerIPStart, "KFW-API-RESTAPI-"),
|
|
|
+ Name: s.BuildName(req.ServerIPStart, strconv.FormatInt(req.SpeedlimitOut, 10), "KFW-API-RESTAPI-"),
|
|
|
})
|
|
|
if err != nil {
|
|
|
return err
|
|
@@ -103,7 +103,7 @@ func (s *buildAudunService) Bandwidth(ctx context.Context,hostId int64, action s
|
|
|
})
|
|
|
case "del":
|
|
|
e = s.DelBandwidth(ctx,v1.Bandwidth{
|
|
|
- Name: ip,
|
|
|
+ ServerIPStart: ip,
|
|
|
SpeedlimitOut: int64(bpsInt),
|
|
|
})
|
|
|
default:
|