I've created a Python script that reads the config files
/etc/config/network
/etc/config/dhcp
and translates it into something that can be used by Kroki to generate a visual diagram of the network, like this
It currently supports both Ethernet and WireGuard interfaces, and if you have network devices with static IPs (like APs, switches etc.) you can manually add those to a local text file to have it included in the diagram.
It could make sense to have my script directly output the image instead of relying on Kroki to do that, but I want to keep the Python script as simple as possible without any dependencies. I also want to explore using Kroki to generate other types of diagrams like firewall rules.
Please give it a try and tell me what you think.