Prerequisite:
- Update our tooling (cookbook, etc) to manage switch ports and cables in Netbox, see T265339 and T265341
- Training of SRE on how to manually edit interfaces and vlans on Netbox then push changes via Homer
The different use cases I have in mind (to be completed) are:
- Mass creation of new servers, for example by importing a CSV
- Creation of a single new server (or low amount), for example through an interactive prompt
- Decommissioning of a single server
- Move of a single server?
Once this is ready, one time mass import the servers links (already done in the POPs) using either (or both to double check):
- PuppetDB LLDP info (from the host point of view) - preferred
- Switches LLDP info (directly or via LibreNMS) (from the switches point of view) - seems to be miss-reporting some devices see T250367
- Parse the switches interface descriptions to fill the cable IDs (when present, core DCs servers don't have cable IDs)
Later on:
- Update the PuppetDB or LibreNMS report to ensure consistency