External IPAM authority: NetBox driver, ownership, reconcile
Every address Rollcall hands out is registered in the configured authority first; addresses others hold there are skipped. Rollcall's records carry the tag `rollcall` and the machine ID in the `rollcall_machine` custom field; only those are changed or deleted. Releases trigger a reconcile that also runs periodically. dns_name per address feeds the site's DNS sync. Delegated prefixes can be listed and imported as subnets. `rollcall ipam`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c8465c235a
commit
2706fd65e7
14 files changed
+1068
-6
No files matched your search
@@ -544,7 +544,7 @@ func (a *App) allocIP(ctx context.Context, sn Subnet, machineID, iface, hostname
|
||||
used[x.IP] = true
|
||||
}
|
||||
for _, ip := range freeCandidates(sn, used, a.rackAddresses(), 256) {
|
||||
ok, err := a.store.ClaimIP(ctx, IPAddr{IP: ip, Subnet: sn.CIDR, MachineID: machineID, Iface: iface, Kind: "auto", Hostname: hostname})
|
||||
ok, err := a.claimIP(ctx, IPAddr{IP: ip, Subnet: sn.CIDR, MachineID: machineID, Iface: iface, Kind: "auto", Hostname: hostname})
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user