Skip to content

Commit

Permalink
fix: Fix IPv4 link-local IP address handling (#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
rastislavs authored Aug 28, 2020
1 parent 6cd31bd commit dfa6e3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/vpp/ifplugin/descriptor/interface_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ func (d *InterfaceAddressDescriptor) Delete(key string, emptyVal proto.Message,
return err
}

if ipAddr.IP.IsLinkLocalUnicast() {
// do not delete (auto-assigned) IPv6 link-local addresses
if ipAddr.IP.To4() == nil && ipAddr.IP.IsLinkLocalUnicast() {
return nil
}

Expand Down

0 comments on commit dfa6e3a

Please sign in to comment.