Skip to content

Commit

Permalink
Merge pull request #317 from clive-jevons/prepend-encapsulation-rules…
Browse files Browse the repository at this point in the history
…-in-mesh

prepend encapsulation rules to reduce number of reconciliation thereof
  • Loading branch information
squat authored Jul 14, 2022
2 parents 37b3cf1 + 0f0b0bd commit cd4a1ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/mesh/mesh.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,9 @@ func (m *Mesh) applyTopology() {
break
}
}
ipRules = append(ipRules, m.enc.Rules(cidrs)...)

ipRules = append(m.enc.Rules(cidrs), ipRules...)

// If we are handling local routes, ensure the local
// tunnel has an IP address.
if err := m.enc.Set(oneAddressCIDR(newAllocator(*nodes[m.hostname].Subnet).next().IP)); err != nil {
Expand Down

0 comments on commit cd4a1ee

Please sign in to comment.