Skip to content

netbox-osp v0.2.1 — d3 dependency hotfix

Choose a tag to compare

@iamjohnnymac iamjohnnymac released this 14 May 00:20

Visual core tracer's dagre-d3 graph stayed blank in 0.2.0 because the dagre-d3 v0.6.4 bundle declares an external d3 dependency rather than inlining it. Loss-budget band and hop legend rendered fine, but the graph itself stayed blank with "Renderer JS not loaded".

Fix

  • Vendored d3.v5.min.js (248 KB) at static/netbox_osp/js/d3.v5.min.js
  • Added the <script> tag in strand_tracer.html before dagre-d3.min.js

No model changes, no API changes, no migrations. Pure two-line fix to the template + one new vendored static file.

Upgrade

pip install -U netbox-osp
python manage.py collectstatic --no-input

Links