netbox-community / netbox-topology-views

A netbox plugin that draws topology views
Apache License 2.0
696 stars 61 forks source link

Closes #436 (and #122?): Add options to disable smooth cables and physics #488

Open dremerb opened 2 months ago

dremerb commented 2 months ago

Although both issues has status "under review", this maybe makes the decision to accept the issue easier.

PR adds settings to make cable renderings straight lines, as proposed in #436. Line style is controlled by an option in the "Individual Options". I am currently working with ~200 hosts and 500+ cables, this change makes the graph a lot clearer in my opinion.

Two side effects:

Fixing the shadows could be done extracting edges.append(create_edge(...)) calls into a dedicated function and ignoring duplicate connections.

dreng commented 1 month ago

We need to finish compatibility with NetBox 4.0 first. This PR may need to be rebased after that.

mattieserver commented 3 days ago

I will try to test/merge this this weekend.