> For the complete documentation index, see [llms.txt](https://docs.netmap.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.netmap.dev/use-netmap/topology.md). Agents can also search and read this documentation through its [MCP server](https://docs.netmap.dev/~gitbook/mcp).

# Topology

Topology turns inventory records into an interactive map of devices, group zones, sites, and relationships. Viewing requires authentication; changing graph data or layouts requires `topology_write`.

<figure><picture><source srcset="https://4241216552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgPqKPcA5Ik65L8fL0ntv%2Fuploads%2Fgit-blob-9b703d3d35e5619e5ce5efa802b2ffa1d6b68456%2Ftopology-overview-dark.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://4241216552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgPqKPcA5Ik65L8fL0ntv%2Fuploads%2Fgit-blob-d99cc3bcd8ec81765b94bf10c57f84085efaaf44%2Ftopology-overview-light.png?alt=media" alt="Wide NetMap topology of Contoso Ltd showing all six locations — Sydney HQ, the Melbourne, Singapore and London offices, the Auckland plant, and Brisbane DC — plus the Auckland WAN link and dashed Azure and AWS cloud groups." width="800"></picture><figcaption><p>Topology of Contoso Ltd, showing all six sites, the Auckland WAN link, and the Azure and AWS cloud groups.</p></figcaption></figure>

<figure><picture><source srcset="https://4241216552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgPqKPcA5Ik65L8fL0ntv%2Fuploads%2Fgit-blob-8bfe7f7578109756ec06a620e439b0a36f4634ce%2Ftopology-sites-dark.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://4241216552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgPqKPcA5Ik65L8fL0ntv%2Fuploads%2Fgit-blob-d65f7dbf1df6c4554e1575975c71530638598208%2Ftopology-sites-light.png?alt=media" alt="A NetMap topology map zoomed to Sydney HQ, showing the DMZ, Mgmt, Servers, CCTV, Wi-Fi and IoT groups, including syd-fw-01 and syd-core-sw-01." width="800"></picture><figcaption><p>Sydney HQ on the Topology map.</p></figcaption></figure>

## Workspace Tour

The canvas occupies the centre, with a toolbar/ribbon for search, fit, layout, display preferences, Path mode, exports, and named layouts. The entity list can search and select devices, links, and groups. The mini-map shows the current model extent; the details panel edits the selected entity. Site filtering, online/offline counts, and a live refresh indicator describe the current graph view rather than the entire database.

## Canvas Navigation And Display

Drag empty canvas space to pan, use the wheel or trackpad to zoom, select a node or edge to open details, and use Fit to frame visible elements. The mini-map viewport rectangle can be clicked to pan without changing zoom. Search accepts a device name, hostname, or IP; selecting a result centres it and briefly pulses the match. The location filter offers **All Sites** or one site.

Device icons, labels, group visibility, and hidden-group search are independent display preferences and persist with the autosaved layout.

Group zones contain their member devices, and [cloud groups](https://docs.netmap.dev/use-netmap/vlans.md#cloud-groups) are drawn with a dashed outline; a relationship can connect devices, groups, or a device to its parent zone. Path mode accounts for both drawn edges and membership hops, so a device-to-switch route can pass through a VLAN/group zone even when no direct edge is drawn. If no route exists, the endpoints remain selected and the UI reports no path.

Status changes produce a short pulse on the affected node. Online/offline counts update with the graph refresh and respect the active site/group filters.

## Entity Lists And Bulk Assignment

Use the Devices, Links, and Groups lists to search, hover, select, and toggle visibility. Shift-drag an empty canvas area to box-select devices; ordinary drag still pans. The floating bulk bar assigns the selected devices to a group/VLAN or site, including clearing an assignment. Bulk changes require `topology_write` and are confirmed before submission.

To clear the links from a group of devices — for example when a rack is re-cabled or removed — box-select them and choose **Remove links…** on the bulk bar. Pick **Only links between these devices** to keep their uplinks to the rest of the network, or **Every link to or from these devices** to remove those too; each choice shows how many links it covers, and the affected links are highlighted on the map while the confirm is open. The devices themselves are not changed. Afterwards a **Removed N links** bar offers **Undo**, which re-creates the links with their type, speed, direction and notes (the restored links get new IDs). **Dismiss** or **Esc** closes the bar.

## Devices, Links, And Relationship Editing

Add a device from the topology toolbar to create it and place it immediately. Discovery opens the scan/review flow; import only the reviewed rows. To create a link, choose source and target endpoints, relationship type, direction, optional link speed, and notes. The endpoint picker searches by IP, hostname, or display name and supports keyboard navigation.

To link several devices quickly, turn on **Link mode** in the toolbar (or press **L**). Click a device, then the device to link it to: the link is saved straight away and you stay in Link mode for the next pair. A small popup opens at the cursor where you can set the link speed or type, **Undo** a link made by mistake, or choose **More…** for the full edit form (notes and one-way traffic). The popup never needs to be closed — clicking the next device carries on. The speed you pick is used for the next link too, so linking a row of hosts to one switch needs only one speed choice. Clicking a group zone links to that group, as in the link form. Two devices that are already linked are not linked twice; the existing link flashes instead. Press **Esc** to close the popup, then to cancel a half-started link, then to leave Link mode. Link mode and Path mode switch each other off, and Link mode is only shown to roles that can edit the topology.

Edit or delete a selected link from the details panel; direction controls determine whether source-to-target, target-to-source, or both states are allowed. Link speed presets are shown in the edge label and influence edge width; speed is presentation metadata, not a bandwidth test.

## Layout Controls And Persistence

Fit frames the current graph, Reset returns the default view, and Auto-arrange recalculates positions. Auto-arrange and group-shape controls can change saved positions, so save deliberately. Group layout supports rows or rings, with device spacing and devices-per-row/ring limits. Node size, label size, group-zone opacity, and edge-label size are display preferences; Reset one group restores that group's layout without deleting its devices or links. **Reset to defaults**, at the bottom of the Display menu, returns every slider to its default: the selected group's node size, spacing, devices per row or rings and device label size, plus the background and link label sizes, which apply to every group. Group positions and the Grid/Radial choice stay as they are.

Untick **Boxes** (beside **Icons** and **Text** in the toolbar) to hide every group and VLAN box and place devices freely. Devices keep their positions and their group membership — filtering, colours and per-group sizing still apply — and links drawn to a group attach to that group's main device while boxes are hidden. Dragging a whole group isn't available while boxes are off. Ticking **Boxes** again wraps each group around wherever its devices now sit; **Auto-arrange** tidies them back into rows. The choice is saved with your layout.

Device labels wrap onto more lines rather than being cut off, so long names stay readable on the map, in the Devices list and in the details panel.

Autosave is debounced while dragging. The server-side `__autosave__` layout wins over local storage when its timestamp is newer, and the initial load is completed before saves are enabled. Named layouts are independent snapshots: create, load, or delete them from the Layouts modal; loading immediately applies and autosaves the canvas state. The autosave layout cannot be shared or deleted.

## Sharing Layouts

Owners can generate a 12-character share code, copy it, revoke it, or import a code. A preview endpoint shows the snapshot before import. Import creates an independent copy for the importing user; a name collision receives an automatic suffix. Revoking a code prevents future imports but does not alter copies already imported.

## Export

PNG exports a raster image for quick sharing, SVG exports a scalable graph with labels and sanitised custom icon paths, and PDF produces a report-style page. Export the visible/current layout after fitting it; very large graphs may need a smaller selection or adjusted label sizes. Export permissions are separate from write permissions where configured.

## Troubleshooting

| Symptom                          | Likely cause                                             | Fix                                                           |
| -------------------------------- | -------------------------------------------------------- | ------------------------------------------------------------- |
| nodes are missing                | site/group filter or hidden group                        | clear filters and use the Groups list's show-all action       |
| layout changes do not persist    | stale local data or database lock                        | reload, reset the group, then retry after checking health     |
| link cannot be created           | endpoint is filtered, duplicate, or direction is invalid | clear filters and select valid distinct endpoints             |
| path shows no route              | no drawn edge or membership hop connects endpoints       | create the missing relationship or select connected endpoints |
| shared layout cannot be imported | code revoked, expired by policy, or mistyped             | request a fresh code from the owner                           |

## Related Pages

* [Inventory](https://docs.netmap.dev/use-netmap/inventory.md)
* [Device Details](https://docs.netmap.dev/use-netmap/device-details.md)
* [Share A Topology Layout](https://docs.netmap.dev/how-to-guides/share-topology-layout.md)
* [VLANs And Groups](https://docs.netmap.dev/use-netmap/vlans.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.netmap.dev/use-netmap/topology.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
