From dc6eb55b26bf5a3cd286f9d0e9f02bb008758f0b Mon Sep 17 00:00:00 2001 From: Ilker Manap Date: Fri, 30 Oct 2026 22:11:38 +0100 Subject: [PATCH] Location changes kick the IPAM reconcile A machine's NetBox device follows a move at once, not at the next pass. Refs #10 Co-Authored-By: Claude Opus 5.5 --- cmd/rollcall/location.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/rollcall/location.go b/cmd/rollcall/location.go index a48af54..c7daab6 100644 --- a/cmd/rollcall/location.go +++ b/cmd/rollcall/location.go @@ -136,6 +136,7 @@ func (a *App) handleLocation(w http.ResponseWriter, r *http.Request) { _ = a.store.AddEvent(r.Context(), m.ID, "location", l.String()) m, _ = a.store.Get(r.Context(), m.ID) a.retag(r.Context(), []*Machine{m}) // rules may look at the rack + a.kickIPAM() // the NetBox device follows (ipam.device_sync) writeJSON(w, 200, obj{"id": m.ID, "location": m.Location}) } @@ -302,6 +303,7 @@ func (a *App) handleLocationImport(w http.ResponseWriter, r *http.Request) { } if !dry { a.retag(r.Context(), nil) + a.kickIPAM() } if matched == nil { matched = []obj{}