Package: netbox-topology-views
Netbox Topology Views PluginCreate topology views/maps from your devices in NetBox.
The connections are based on the cables you created in NetBox.
Support to filter on name, site, tag and device role.Options to export to xml (for draw.io/diagrams.net) or png.PreviewInstallNOTE:For docker please see:Docker installNOTE:AddRUN mkdir -p /opt/netbox/netbox/static/netbox_topology_views/imgto the Dockerfile-Plugins file to create the image folderThe plugin is available as a Python package and can be installed with pip.Runpip install netbox-topology-viewsin your virtual env.To ensure NetBox Topology Views plugin is automatically re-installed during future upgrades, create a file namedlocal_requirements.txt(if not already existing) in the NetBox root directory (alongsiderequirements.txt) and list thenetbox-topology-viewspackage:# echo netbox-topology-views >> local_requirements.txtOnce installed, the plugin needs to be enabled in yourconfiguration.py# In your configuration.pyPLUGINS=["netbox_topology_views"]First runsource /opt/netbox/venv/bin/activateto enter the Python virtual environment.Then runcd/opt/netbox/netbox
pip3installnetbox-topology-views
python3manage.pymigratenetbox_topology_views
python3manage.pycollectstatic--no-inputVersionsnetbox versionnetbox-topology-views version>= 3.7.0>= v3.9.0>= 3.6.4>= v3.8.1>= 3.6.0>= v3.7.X>= 3.5.0>= v3.4.X>= 3.4.0>= v3.X.X>= 3.3.0>= v3.0.0>= 3.2.0>= v1.1.0>= 3.1.8>= v1.0.0>= 2.11.1>= v0.5.3>= 2.10.0>= v0.5.0< 2.10.0=< v0.4.10UpdateRunpip install netbox-topology-views --upgradein your venv.Runpython3 manage.py migrate netbox_topology_viewsRunpython3 manage.py collectstatic --no-inputClear you browser cache.ConfigureIndividual OptionsAll individual options can be assigned a default value per user directly in the plugin. The default value can be overridden on the filter page.The remaining options must be configured in thePLUGINS_CONFIGsection of yournetbox/configuration.py.Example:PLUGINS_CONFIG = {
    'netbox_topology_views': {
        'static_image_directory': 'netbox_topology_views/img',
        'allow_coordinates_saving': True,
        'always_save_coordinates': True
    }
}SettingDefault valueDescriptionstatic_image_directorynetbox_topology_views/img(str or pathlib.Path) Specifies the location that images will be loaded from by default. Must be withinSTATIC_ROOTallow_coordinates_savingFalse(bool) Set to true if you want to enable the ability to save the coordinates.always_save_coordinatesFalse(bool) Set if you want to enable the option to save coordinates by default. Setting allow_coordinates_saving to true is mandatory.Custom field: coordinatesThere is also support for custom fields.Note:The custom field "coordinates" is deprecated and will be removed in the future. Please use Coordinate Groups instead.If you create a custom field "coordinates" for "dcim > device" and "Circuits > circuit" with type "text" and name "coordinates" you will see the same layout every time. It is recommended to set this field to "UI visibility" "Hidden" and let the plugin manage it in the background.The coordinates are stored as: "X;Y".Please read the "Configure" chapter to set theallow_coordinates_savingoption to True.
You might also set thealways_save_coordinatesoption to True.Convert custom field to Coordinate GroupsPlease note that values stored in the custom field "coordinates" are not being converted to Coordinate Groups automatically. A pragmatic way to do this conversion yourself is as follows:Navigate to "Topology" > "Filters".Select "Show Unconnected" and "Show Cables".Leave all other filter settings alone. We want all entries to be displayed!Click "Search" and wait for the results to be displayedSelect all nodes. This can be done by holding down the Shift key and dragging a frame around all icons with the left mouse button.Drag the selection a tiny bit to the side. This causes all coordinates for all devices to be stored in the "default" group.Hint: Don't wait too long after clicking an icon in order to drag. If you hold the mouse button for too long before dragging starts, the selection is reset._Storing the values might take some time, depending on the number of devices. Please be patient and check "Coordinates" in order to make sure that everthing has been stored.It is save to delete the custom field now.Custom ImagesTo change image with associated device use theImagespage - it allows to map a device role with an image found in the NetBox static directory (defined by the plugin configstatic_image_directorywhich defaults tonetbox_topology_views/img). You can also upload you own custom images to there - these images will automatically be used for a device (if it does not already have a specified image in the settings) if their name is the device role slug.UseGo to the plugins tab in the navbar and click topology or go to$NETBOX_URL/plugins/netbox_topology_views/to view your topologiesSelect your options for the topology view:Coordinate GroupSelect Coordinate Group. These groups allow devices to be displayed in different positions depending on the group, thus providing different representations for the same topology. If nothing is selected, the group "default" is set automatically.Save CoordinatesSave the coordinates of devices in the topology view.Show UnconnectedShow devices that have no connections or for which no connection is displayed. This option depends on other parameters like 'Show Cables' and 'Show Logical Connections'.Show CablesShow connections between interfaces, front / rear ports, etc., that are connected with one or more cables. These connections are displayed as solid lines in the color of the cable.Show Logical ConnectionsShow logical connections between interfaces (referred to as Interface Connections in NetBox) in the topology view. Where the path between
        interfaces includes multiple cables (e.g., via patch panels), only the end interface connections are shown, not the 
        intermediate front / rear port connections, etc. This is similar to what was referred to as 'end-to-end' connections in previous versions. These connections are displayed as yellow dotted lines.Show redundant Cable and Logical ConnectionShows a logical connection (in addition to a cable), even if a cable is directly connected. Leaving this option disabled prevents that redundant display. This option only has an effect if 'Show Logical Connections' is activated.Show NeighborsAdds neighbors to the filter result set automatically. Link peers will be added if 'Show Cables' is ticked, far-end terminations will be added if 'Show Logical Connections' is ticked.Show Circuit TerminationsShow connections which end at a circuit termination in the topology view. These connections are displayed as blue dashed lines.Show Power FeedsDisplays connections between power outlets and power ports. These connections are displayed as solid lines in the color of the cable. This option depends on 'Show Cables'.Show Wireless LinksDisplays wireless connections. These connections are displayed as blue dotted lines.Coordinates and Coordinate GroupsNetbox Topology Views stores the position of the devices. In order to allow different representations for the topology, Coordinate Groups are supported.Please read the "Configure" chapter to set theallow_coordinates_savingoption to True.
You might also set thealways_save_coordinatesoption to True.Navigate to "Coordinate Groups" in the menu and create as many groups as you like. You can select a group later in the filter pane in order to show icon positions according to this group (see chapter "Use"). You can also omit creating a group if you don't need this feature. Netbox Topology Views automatically creates a group named "default" for you and stores all coordinates in this group, even if you do not select a group in the filter.By default, the position of the devices are calculated with a physics engine. As soon as a device icon is dragged to another location, its position is saved and excluded from the calculation by the physics engine. All saved coordinates can be viewed and edited under the menu item "Coordinates".Note:At the time of writing, it is not possible to store the positions of circuit terminations, power panels and power feeds, as these are not devices.PermissionsTo view/plugins/netbox_topology-views/topologyyou need the following permissions:dcim | device | can view devicedcim | site | can view siteextras | tag | can view tagdcim | device role | can view device roleTo saveCoordinateswhen moving icons:netbox_topology_views | coordinate | changeTo view/plugins/netbox_topology-views/images:dcim | site | viewdcim | device role | viewdcim | device role | adddcim | device role | changeTo view/plugins/netbox_topology-views/individualoptions:netbox_topology_views | individual options | changeSetCoordinate Groupsaccording to your needs:netbox_topology_views | coordinate groups | view/add/change/deleteSetCoordinatesaccording to your needs:netbox_topology_views | coordinate | view/add/change/deleteSetPower Feed Coordinatesaccording to your needs:netbox_topology_views | power feed coordinate | view/add/change/deleteSetPower Panel Coordinatesaccording to your needs:netbox_topology_views | power panel coordinate | view/add/change/deleteSetCircuit Coordinatesaccording to your needs:netbox_topology_views | circuit coordinate | view/add/change/delete