netbox icon indicating copy to clipboard operation
netbox copied to clipboard

IPAM Site Prefixes render children indent when the parent is not assigned.

Open jchambers2012 opened this issue 1 year ago • 2 comments

Deployment Type

Self-hosted

NetBox Version

3.7.2 and 3.6.5

Python Version

3.11

Steps to Reproduce

Hide Depth Indicators work as expected but with the indicator on can cause some confusion.

  1. Navigate to IPAM -> Prefixes
  2. Add new prefix with the following settings. PREFEX: 10.112.157.0/24 DESCRIPTION: BROKEN PARENTS Site: DM-Akron
  3. Create
  4. Navigate to Organization -> Site -> DM-Akron -> Click Prefixes
  5. 10.112.157.0/24 looks like it a child of 10.112.128.0/22 image

This can be more "confusing" when adding more 45.x.x.x/x networks: For example add the following Prefixes:

  • 45.0.0.0/8
  • 45.25.0.0/16
  • 45.25.25.0/24
  • 45.25.25.0/29 - Assign to Site: DM-Akron

Global Prefixes View: Navigate to IPAM -> Prefixes image

Site Prefixes View: Navigate to Organization -> Site -> DM-Akron -> Click Prefixes image

Expected Behavior

Since the parent is not "linked" to this Site the three dots should not be rendered or some other GUI object should be rendered pointing to it true parent?

One thought when in this filter view:

  • 10.112.128.0/22 should have 0 dots
    • 10.112.128.0/22 children should have 1 dot
  • 10.112.157.0/24 should have 0 dots

Observed Behavior

All prefix are indented based on where they live on the global prefix list: image

jchambers2012 avatar Feb 13 '24 19:02 jchambers2012

Goto https://demo.netbox.dev/ipam/prefixes/

Please revise your report above to remove all references to the demo instance.

jeremystretch avatar Feb 14 '24 14:02 jeremystretch

@jeremystretch - removed - let me know if that will work as having existing data from the demo site was used in the screenshot examples above.

jchambers2012 avatar Feb 14 '24 14:02 jchambers2012

This is working as expected; the indentation annotates each prefix's depth in the hierarchy. If you'd prefer not to see this, you can replace the default "prefix" column in the table configuration with "prefix (flat)", which does not annotate depth.

jeremystretch avatar Feb 15 '24 14:02 jeremystretch