Skip to content

Nested Module Bay Label's don't support {module} like Interface Label's do #19918

@sol1-matt

Description

@sol1-matt

Deployment Type

Self-hosted

NetBox Version

v4.3.3

Python Version

3.11

Steps to Reproduce

  1. Create a new device type with module bays with properties Name = Bay [A-B], Label = [A-B], Position = [A-B]
  2. Create a new module type named 24 port with SFP with module bays with properties Name = SFP {module}-[1-2], Label = {module}-[1-2], Position = [1-2]
  3. Add to the Step 2 module type more module bays with properties Name = SFP {module}-[21-24], Label = [21-24], Position = [21-24]
  4. Add to the Step 2 module type 1GE interfaces with properties Name = Eth {module}-[1-20], Label = {module}-[1-20]
  5. Create a new module type named 10g SFP (2 nested) with 10GE interfaces with properties Name = Eth {module}-{module}, Label = {module}-{module}
  6. Create a new device from the Step 1 device type
  7. Add a 24 port with SFP module to the device in Bay A
  8. Add a 10g SFP (2 nested) to module bay SFP-A-21

Expected Behavior

The Label on the nested module bays should inherit the position from the parent bay: eg A-21.
This is the same behavior that interfaces have.

Observed Behavior

The labels on the bays show {module}-21 instead of A-21

Image Image

Note in the second screenshot the interface labels were created correctly with the 10G interface getting the label A-21

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageThis issue is awaiting triage by a maintainertype: bugA confirmed report of unexpected behavior in the application

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions