Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
Signed-off-by: bobz965 <[email protected]>
  • Loading branch information
zbb88888 committed Feb 6, 2024
1 parent 4792810 commit e366e83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/daemon/ovs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ func waitNetworkReady(nic, ipAddr, gateway string, underlayGateway, verbose bool
for i, gw := range strings.Split(gateway, ",") {
src := strings.Split(ips[i], "/")[0]
if underlayGateway && util.CheckProtocol(gw) == kubeovnv1.ProtocolIPv4 {
// v4 underlay gateway check use arping
mac, count, err := util.ArpResolve(nic, src, gw, time.Second, maxRetry)
cniConnectivityResult.WithLabelValues(nodeName).Add(float64(count))
if err != nil {
Expand All @@ -419,6 +420,7 @@ func waitNetworkReady(nic, ipAddr, gateway string, underlayGateway, verbose bool
klog.Infof("network %s with gateway %s is ready for interface %s after %d checks", ips[i], gw, nic, count)
}
} else {
// v6 or vpc gateway check use ping
if err := pingGateway(gw, src, verbose, maxRetry); err != nil {
klog.Error(err)
return err
Expand Down

0 comments on commit e366e83

Please sign in to comment.