netbox-topology-views
netbox-topology-views copied to clipboard
Topology view not showing
Possible user error but I can't get the topology views plugin to show any views.
I'm not sure what logs or configs I can provide so please let me know what you would like.
PLUGINS = ["netbox_topology_views"] PLUGINS_CONFIG = { 'netbox_topology_views': { 'enable_circuit_terminations': False, 'draw_default_layout': True, 'ignore_cable_type': 'circuit termination' } }
Python 3.8.10 Netbox 3.2.5
Installed Plugins NAME PACKAGE NAME AUTHOR DESCRIPTION VERSION Topology views netbox_topology_views Mattijs Vanhaverbeke An plugin to render topology maps 2.0.1
Same issue here. Setting Hide Unconnected
filter makes the nodes appear.
Hi,
Sorry for the late reply. Can you check if you have this issue still on netbox 3.27? I was unable to replicatie this, but it is not so easy to get the logs from netbox.
I'm on 3.27 and haven't gotten anything to display yet.
So it turns out that the problem is that the static js/css/etc files are not getting installed in my docker version of netbox. Mounting the source code's static code into /opt/netbox/netbox/static/netbox_topology_views
in the docker container let it work.
Hi @hardaker,
Do you have the python3 manage.py collectstatic --no-input
command in your docker build process?
If you run this after you install the plugin it should copy the css & js files to the correct location.
Sorry for the delay. I do. But your point is valid: why isn't it collecting it? I'll try to look into it as well.
@hardaker were you able to find a solution? I'm having (was having) the same problem.
I also see that there's no network-topology-views
in the static folder.
I added the following to my Dockerfile
COPY ./netbox_topology_views/static/netbox_topology_views /opt/netbox/netbox/static/netbox_topology_views
And now I have icons
I admittedly have been swamped with a much more pressing deadline and haven't gotten back to debugging. But yes, copying in solved it for me too and hence motivation is low :-/
This is not working for me on netbox-3.3.1.
I'm not seeing anything in the logs...
Did you clear your browser cache after the update?
Stupid me. I did not but just tried it using Vivaldi. No dice after clearing cache. Will try another browser and computer.
Just tried on a different computer. Nothing comes up. Even when I check Hide Unconnected
Is this also with a docker setup?
No. Not using docker.
This is currently not working in a docker environment as already pointed out from @hardaker and @dwilliss .
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /tmp/externals_plugins.txt && \
# Copy static or plugin will not work
cp -r /opt/netbox/venv/lib/python3.10/site-packages/netbox_topology_views/static/netbox_topology_views /opt/netbox/netbox/static && \
/opt/netbox/netbox/manage.py collectstatic --no-input
Result in
🧬 loaded config '/etc/netbox/config/configuration.py' 🧬 loaded config '/etc/netbox/config/extra.py' 🧬 loaded config '/etc/netbox/config/logging.py' 🧬 loaded config '/etc/netbox/config/plugins.py'
0 static files copied to '/opt/netbox/netbox/static', 514 unmodified.