From 03cf192142912825a50355099674fdc0f1f5693f Mon Sep 17 00:00:00 2001 From: Artem Glazychev Date: Tue, 3 Oct 2023 20:58:36 +0700 Subject: [PATCH] Fix pinhole panic in case of error (#758) Signed-off-by: Artem Glazychev --- pkg/networkservice/pinhole/common.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/networkservice/pinhole/common.go b/pkg/networkservice/pinhole/common.go index b14d1014..2f2d0735 100644 --- a/pkg/networkservice/pinhole/common.go +++ b/pkg/networkservice/pinhole/common.go @@ -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)