## Summary Each fabric node maps to one Cacti device, created or confirmed by an operator. ## Requirements - **REQ-MAP-001** A node record MUST map to at most one Cacti device, and a device MAY have several nodes. - **REQ-MAP-002** Devices MUST be created only on operator confirmation, through Cacti's device API, with the Fabric Node template. - **REQ-MAP-003** Mapping an existing device MUST require operator confirmation and MUST show the evidence offered, such as a matching host name. - **REQ-MAP-004** The `device_remove` hook MUST clear mappings for removed devices and MUST NOT delete inventory. - **REQ-MAP-005** A replaced adapter or switch MUST produce a re-link proposal that keeps history readable, and MUST NOT re-link automatically. ## Acceptance criteria - [ ] Create, map, remove, and replaced-node tests. - [ ] Hosts with two adapters map to one device. ## References - [Plan: Cacti objects](https://github.com/somethingwithproof/plugin_fabric/blob/main/docs/PLAN.md#cacti-objects) - [ADR 0003](https://github.com/somethingwithproof/plugin_fabric/blob/main/docs/decisions/0003-identify-by-guid-and-port-number.md) ## Dependencies - Part of #3. - Blocked by #40, #35, #9.
Activity