Skip to content

Commit

Permalink
Fix pinhole panic in case of error (#758)
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
  • Loading branch information
glazychev-art authored Oct 3, 2023
1 parent c5aa8c2 commit 03cf192
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/networkservice/pinhole/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ func tunnelIPSwIfIndex(ctx context.Context, vppConn api.Connection, tunnelIP net
swIfDetails, swIfDumpErr = swIfDumpClient.Recv()
}
log.FromContext(ctx).
WithField("swIfIndex", swIfDetails.SwIfIndex).
WithField("duration", time.Since(now)).
WithField("vppapi", "SwInterfaceDump").Debugf("did not find interface with ip %s", tunnelIP)
return 0, errors.Errorf("unable to find tunnelIP (%s) on any vpp interface", tunnelIP)
Expand Down

0 comments on commit 03cf192

Please sign in to comment.