Skip to content

Commit

Permalink
only v6 mode add ipv6 local-link addr
Browse files Browse the repository at this point in the history
Signed-off-by: clyi <[email protected]>
  • Loading branch information
changluyi committed Sep 23, 2024
1 parent b06703d commit 7b749b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/ovs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ func configureNic(link, ip string, macAddr net.HardwareAddr, mtu int, detectIPCo
ipDelMap[ipAddr.IPNet.String()] = ipAddr
}

if ipv6LinkLocalOn && !isIPv6LinkLocalExist {
if ipv6LinkLocalOn && !isIPv6LinkLocalExist && util.CheckProtocol(ip) == kubeovnv1.ProtocolIPv6 {
linkLocal, err := macToLinkLocalIPv6(macAddr)
if err != nil {
return fmt.Errorf("failed to generate link-local address: %w", err)
Expand Down

0 comments on commit 7b749b7

Please sign in to comment.