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 <[email protected]>
  • Loading branch information
denis-tingaikin committed Jul 30, 2024
1 parent 6ad404f commit 6db1a9f
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 6db1a9f

Please sign in to comment.