Skip to content

Commit

Permalink
USHIFT-3177: Use only ipv4 addresses for default router
Browse files Browse the repository at this point in the history
There was a mismatch between what the config package IP addresses from
the host and the router controller. The config package only gets ipv4
addresses while the router controller takes ipv6 too. This caused a
mismatch between allowed/configured IP addresses that triggered fake
warning logs about ipv6 entries not allowed in the service (even if
they were not configured).
  • Loading branch information
pacevedom committed May 29, 2024
1 parent bcc6b3c commit 7fb72ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/loadbalancerservice/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func ipAddressesFromNIC(name string) ([]string, error) {
return nil, err
}

addrList, err := netlink.AddrList(link, netlink.FAMILY_ALL)
addrList, err := netlink.AddrList(link, netlink.FAMILY_V4)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 7fb72ff

Please sign in to comment.