infer_topology
Given device configs, infer shared subnets and VLANs, then visualize network adjacencies as a Mermaid topology diagram.
Instructions
Given several device configs, work out which devices share subnets or VLANs and draw the segments as a Mermaid diagram (graph LR). Shared-subnet inference: two devices with an interface on the same network are adjacent. A subnet contained in a broader declared one is merged into it. Prefixes shorter than /16 are ignored as too broad to mean a segment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| devices | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |