netbox-topology-views icon indicating copy to clipboard operation
netbox-topology-views copied to clipboard

Devices in topology keep rotating

Open andreavivaldi opened this issue 4 years ago • 10 comments

Hi, I've installed this plugin (version 0.4.8) on NetBox (version 2.8.4) and I have this strange behaviour: devices keep rotating without stop in a fixed position. When I hit the search button (several time) they just stop.

Thanks for the support!

andreavivaldi avatar May 21 '20 11:05 andreavivaldi

Thanks for reporting this. I will look into what could cause this but i am not sure if i will be able to provide a solution as the graph itself is 'created' by a 3th party library

mattieserver avatar May 21 '20 11:05 mattieserver

Thanks @mattieserver! Which library do you use? Vis.js (my curiosity)? Maybe it's worth a try upgrading the library? Let me know if you are able to reproduce the bug or if you need a hand (I'm not an expert developer but I can try)

andreavivaldi avatar May 22 '20 05:05 andreavivaldi

It is indeed vis.js, or only the network part (vis-network). I believe I used the latest version, unless they released a new version in the last week.

mattieserver avatar May 22 '20 07:05 mattieserver

I managed to reproduce the bug, but only if i have set the custom field 'coordinates' for some devices. Do you use that custom field?

mattieserver avatar May 22 '20 08:05 mattieserver

Nope, this issue happens when I change the roles loaded by default and then hit search. In fact, if I do not touch anything before hit search this bug doesn't show. Then, to stop the rotation I have to hit search button several time.... this is very odd. How about disabling physics in vis.js?

andreavivaldi avatar May 22 '20 08:05 andreavivaldi

All devices are stacked on top of each other then. I will check if i can use another solver, now its 'forceAtlas2Based'.

mattieserver avatar May 22 '20 08:05 mattieserver

The very odd fact is that is all working good until I touch form field... maybe some action to retrieve form field suggestion values make a conflict with the vis library?

andreavivaldi avatar May 22 '20 08:05 andreavivaldi

I cannot change the physics to another type because then the coordinates within the plugin would be 'incorrect'. So it seems like we are stuck.

mattieserver avatar Jun 01 '20 16:06 mattieserver

@mattieserver , perhaps button that enables/disables physics ones the initial solver phase.

rkandilarov avatar Jul 01 '20 15:07 rkandilarov

obraz ;/

myhellone avatar Sep 07 '21 15:09 myhellone