Skip to content

Commit

Permalink
Merge pull request #161 from openshift-cherrypick-robot/cherry-pick-1…
Browse files Browse the repository at this point in the history
…57-to-release-4.9

[release-4.9] Bug 2026012: Ignore VIPs in node-ip show
  • Loading branch information
openshift-merge-robot committed Mar 1, 2022
2 parents 5113d1b + 54f488f commit 5660224
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/utils/addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@ func addressesRoutingInternal(vips []net.IP, af AddressFilter, getAddrs addressM
for link, addresses := range addrMap {
addrLoop:
for _, address := range addresses {
isVip := false
for _, vip := range vips {
if address.IP.String() == vip.String() {
log.Debugf("Address %s is VIP %s. Skipping.", address, vip)
isVip = true
}
}
if isVip {
continue
}
maskPrefix, maskBits := address.Mask.Size()
if net.IPv6len == len(address.IP) && maskPrefix == maskBits {
if routeMap == nil {
Expand Down

0 comments on commit 5660224

Please sign in to comment.