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{}