Skip to content

Commit

Permalink
fix only ipv6 mode should add ovn0 locallink ipv6 address (#4552)
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 1f8b191 commit ff0e85b
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 @@ -904,7 +904,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: %v", err)
Expand Down

0 comments on commit ff0e85b

Please sign in to comment.