Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Hang Yan <[email protected]>
  • Loading branch information
hangyan committed Sep 6, 2024
1 parent 8a2d6b8 commit 1ee2069
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ func (c *Controller) startPacketCapture(pc *crdv1alpha1.PacketCapture, pcState *
c.runningPacketCaptures[pcState.tag] = pcState
c.runningPacketCapturesMutex.Unlock()

timeout := pc.Spec.Timeout
if timeout == 0 {
timeout = crdv1alpha1.DefaultPacketCaptureTimeout
timeout := crdv1alpha1.DefaultPacketCaptureTimeout
if pc.Spec.Timeout != nil {
timeout = *pc.Spec.Timeout
}
klog.V(2).InfoS("Installing flow entries for PacketCapture", "name", pc.Name)
err = c.ofClient.InstallPacketCaptureFlows(pcState.tag, senderOnly, receiverOnly, senderPacket, endpointPackets, ofPort, timeout)
Expand Down

0 comments on commit 1ee2069

Please sign in to comment.