Skip to content

Commit

Permalink
tmp fix for tap deleting
Browse files Browse the repository at this point in the history
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
  • Loading branch information
denis-tingaikin committed Jul 22, 2024
1 parent 6a236fb commit bb3fa46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/networkservice/mechanisms/kernel/kerneltap/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ func del(ctx context.Context, conn *networkservice.Connection, vppConn api.Conne
return nil
}
now := time.Now()
var cancel func()
ctx, cancel = context.WithTimeout(context.Background(), time.Minute)
defer cancel()
_, err := tapv2.NewServiceClient(vppConn).TapDeleteV2(ctx, &tapv2.TapDeleteV2{
SwIfIndex: swIfIndex,
})
Expand Down

0 comments on commit bb3fa46

Please sign in to comment.