Skip to content

Commit

Permalink
reword delete conntrack logging
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Ojea <aojea@redhat.com>
  • Loading branch information
Antonio Ojea committed Nov 23, 2020
1 parent 0988e00 commit f1a099b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/meta/portmap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func cmdAdd(args *skel.CmdArgs) error {
// due to stale connections. We do that after the iptables rules are set, so
// the new traffic uses them. Failures are informative only.
if err := deletePortmapStaleConnections(netConf.RuntimeConfig.PortMaps, unix.AF_INET); err != nil {
log.Printf("fail to delete conntrack connections for %s: %v", netConf.ContIPv4.IP, err)
log.Printf("failed to delete stale UDP conntrack entries for %s: %v", netConf.ContIPv4.IP, err)
}
}

Expand All @@ -107,7 +107,7 @@ func cmdAdd(args *skel.CmdArgs) error {
// due to stale connections. We do that after the iptables rules are set, so
// the new traffic uses them. Failures are informative only.
if err := deletePortmapStaleConnections(netConf.RuntimeConfig.PortMaps, unix.AF_INET6); err != nil {
log.Printf("fail to delete conntrack connections for %s: %v", netConf.ContIPv6.IP, err)
log.Printf("failed to delete stale UDP conntrack entries for %s: %v", netConf.ContIPv6.IP, err)
}
}

Expand Down

0 comments on commit f1a099b

Please sign in to comment.