cluster: drop wg1.conf #58

Merged
karasz merged 5 commits from pr-amery-vxlan into main 2024-07-29 21:57:06 +02:00
Showing only changes of commit 08da69f7aa - Show all commits
+5 -8
View File
@@ -196,15 +196,12 @@ func (r *Ring) AddPeer(p *Machine) bool {
return true
}
func (r *Ring) setRingZeroAllowedIPs(rp *RingPeer) {
regionID, zoneID, _, _ := r.Decode(rp.Address)
// everyone on ring0 is a gateway to ring1
subnet, _ := rings.RingOnePrefix(regionID, zoneID)
rp.AllowSubnet(subnet)
// peer
func (*Ring) setRingZeroAllowedIPs(rp *RingPeer) {
// ring0 peer
rp.AllowCIDR(rp.Address, 32)
// everyone on ring0 has a leg on ring1
rp.AllowCIDR(rp.Node.RingOneAddress(), 32)
}
// ForEachMachine calls a function for each Machine in the ring