Skip to content

Commit

Permalink
Merge pull request #486 from Nordix/fix-en-dis-data-path-healing
Browse files Browse the repository at this point in the history
Data path healing should be disabled
  • Loading branch information
denis-tingaikin authored Jun 1, 2022
2 parents 33c5467 + 9ebf9f0 commit e198fdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/kernel/tools/heal/liveness_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ func KernelLivenessCheck(deadlineCtx context.Context, conn *networkservice.Conne
}

addrCount := len(conn.GetContext().GetIpContext().GetDstIpAddrs())
if addrCount == 0 {
log.FromContext(deadlineCtx).Debug("No dst IP address")
return true
}
timeout := time.Until(deadline) / time.Duration(addrCount)

var pinger *ping.Pinger
Expand Down

0 comments on commit e198fdc

Please sign in to comment.