Netlens works out which device sits below which, like the topology view of a network controller. Every device gets at most one parent, taken from the first source that knows one:
| Priority | Source | Example |
|---|---|---|
| 1 | Set manually on the device page | “this camera hangs off the garage switch” |
| 2 | a hypervisor plugin (for example Proxmox) | a VM or container sits below its host |
| 3 | an uplink from a topology plugin (for example the ASUS router) | a laptop below the mesh node it is connected to |
| 4 | a guess for virtual machines when exactly one hypervisor is known | |
| 5 | the next router on the traceroute path | |
| 6 | the default gateway | everything else |
The result is always a tree: an assignment that would put a device below itself is skipped in favour of the next source. You see it in three places:
- Hierarchy page (menu): a tree you can expand and collapse and filter. Each row shows the status, type, IP, how many devices are below it, and where its parent came from (Proxmox, gateway, traceroute, set manually). Devices nothing is known about are listed separately at the bottom.
- Map: by default only each device’s chosen parent link is drawn, so a Proxmox guest hangs under its host instead of also being linked to the router. Hierarchy links / All links switches between that and every inferred link, and Free / Tree / Horizontal / Vertical / Compact layout arranges the devices: Tree is a top-down tree, Horizontal is a left-to-right topology like Omada’s (the router on the left, one column per level, a card per device, right-angle links) and Vertical is the same picture top to bottom (the router at the top, one row per level, the devices of a level side by side). Compact is the dashboard’s mini-map at full size: small dots in columns from left to right with curved links, everything visible at once (nothing folded), click a dot for the details. In the horizontal and vertical layouts the client devices of a busy branch (more than 8) start folded into
▸ N more; double-click a device, or use its details panel, to fold or open its clients, and Collapse clients, Expand all and Fit act on the whole map. The tree layouts arrange themselves, and dragging in them does not overwrite your saved free-layout positions. Clicking a device shows its parent. The layout the map opens with is set under Settings → Map (a layout chosen in the map’s own menu is remembered per browser and wins; Forget this browser’s choice in Settings returns to the default). - Device page, section Network position (inside the collapsed Edit card): shows what the device sits below and why, lists the devices below it, and lets you choose the parent: Automatic, None (top level) or a specific device. Devices below the current one are not offered, so a loop is impossible. If a chosen parent is deleted, the device goes back to automatic.
The same data is available as GET /api/hierarchy, and PATCH /api/devices/<id> accepts parent_mode (auto, none, device) and parent_device_id.