Network · inventory
The network inventory lives in NetBox.
It must be read every night, with no write access.
Demo NetBox
The problem
NetBox refuses the token as usually sent.
- It wants "Token <key>", not "Bearer <key>".
- That is Django REST Framework's rule, which it is built on.
What is not changed
NetBox stays as it is.
- A read-only token.
- Its standard REST API.
What had to be written
auth: { kind: bearer, scheme: Token }
pagination: { kind: drf-limit-offset }Name the framework and its word.
One 28-line connector.
Red
The replay found a gap.
- The hub only wrote "Bearer".
- "Token" had to be stored inside the secret: fixed (icreated/lumnik#1640).
Green
120 devices, 3 requests.
- The next night, 6 switches taken offline.
- The hub counts them per site.
The limit
Each night rereads the whole inventory.
- NetBox's last_updated filter would reread only the changes.
- A deleted device stays in the hub with its last state.
Try it
The scenario replays locally.
A real NetBox, every step published with its output.