Skip to content

Commit

Permalink
Only program routes for borrowed tunnel IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
caseydavenport committed Jan 2, 2025
1 parent acb03be commit ec8dbb8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions felix/dataplane/linux/vxlan_mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,8 @@ func (m *vxlanManager) OnUpdate(protoBufMsg interface{}) {

// Process routes for remote tunnel endpoints as well. This is necessary to ensure hosts can
// communicate with tunnel endpoints that whose IP address has been borrowed.
// TODO: We only need to program these if they aren't masked by a block route. Who should be responsible for that?
if msg.Type == proto.RouteType_REMOTE_TUNNEL && msg.IpPoolType == proto.IPPoolType_VXLAN {
m.logCtx.WithField("msg", msg).Debug("VXLAN data plane received route update for VXLAN tunnel")
if msg.Type == proto.RouteType_REMOTE_TUNNEL && msg.IpPoolType == proto.IPPoolType_VXLAN && msg.Borrowed {
m.logCtx.WithField("msg", msg).Debug("VXLAN data plane received route update for borrowed VXLAN tunnel IP")
m.routesByDest[msg.Dst] = msg
m.routesDirty = true
}
Expand Down

0 comments on commit ec8dbb8

Please sign in to comment.