Skip to content

Commit

Permalink
underlay: clear address lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Aug 17, 2023
1 parent 54701bf commit 32250b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/daemon/ovs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,7 @@ func (c *Controller) transferAddrsAndRoutes(nicName, brName string, delNonExiste
klog.Infof("address %q has been removed from link %s", addr.String(), nicName)

addr.Label = ""
addr.PreferedLft, addr.ValidLft = 0, 0
if err = netlink.AddrReplace(bridge, &addr); err != nil {
return 0, fmt.Errorf("failed to replace address %q on OVS bridge %s: %v", addr.String(), brName, err)
}
Expand Down

0 comments on commit 32250b4

Please sign in to comment.